mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
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.
|
// rather than as special regex symbols.
|
||||||
const escapedOriginalValue = originalValue.replace(/([.*+?^=!:${}()|\-/\\])/g, '\\$1');
|
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 {
|
export function removeAll(value: string, originalValue: string): string {
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export function useAboutPageBase() {
|
|||||||
});
|
});
|
||||||
const mapProviderWebsite = computed<string>(() => getMapWebsite());
|
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());
|
const thirdPartyLicenses = computed<LicenseInfo[]>(() => getThirdPartyLicenses());
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user