diff --git a/src/lib/common.ts b/src/lib/common.ts index ac9b5eb0..24dac63e 100644 --- a/src/lib/common.ts +++ b/src/lib/common.ts @@ -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 { diff --git a/src/views/base/AboutPageBase.ts b/src/views/base/AboutPageBase.ts index 8a213934..33979b95 100644 --- a/src/views/base/AboutPageBase.ts +++ b/src/views/base/AboutPageBase.ts @@ -37,7 +37,7 @@ export function useAboutPageBase() { }); const mapProviderWebsite = computed(() => getMapWebsite()); - const licenseLines = computed(() => getLicense().replaceAll(/\r/g, '').split('\n')); + const licenseLines = computed(() => getLicense().replace(/\r/g, '').split('\n')); const thirdPartyLicenses = computed(() => getThirdPartyLicenses()); return {