improve compatibility

This commit is contained in:
MaysWind
2025-06-08 02:47:30 +08:00
parent 583676314a
commit f905dcb3fd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ export function replaceAll(value: string, originalValue: string, targetValue: st
// rather than as special regex symbols.
const escapedOriginalValue = originalValue.replace(/([.*+?^=!:${}()|\-/\\])/g, '\\$1');
return value.replaceAll(new RegExp(escapedOriginalValue, 'g'), targetValue);
return value.replace(new RegExp(escapedOriginalValue, 'g'), targetValue);
}
export function removeAll(value: string, originalValue: string): string {
+1 -1
View File
@@ -37,7 +37,7 @@ export function useAboutPageBase() {
});
const mapProviderWebsite = computed<string>(() => getMapWebsite());
const licenseLines = computed<string[]>(() => getLicense().replaceAll(/\r/g, '').split('\n'));
const licenseLines = computed<string[]>(() => getLicense().replace(/\r/g, '').split('\n'));
const thirdPartyLicenses = computed<LicenseInfo[]>(() => getThirdPartyLicenses());
return {