improve compatibility
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user