diff --git a/app/src/components/v-field-template/v-field-template.vue b/app/src/components/v-field-template/v-field-template.vue index bb16483191..8caec10346 100644 --- a/app/src/components/v-field-template/v-field-template.vue +++ b/app/src/components/v-field-template/v-field-template.vue @@ -263,7 +263,7 @@ export default defineComponent({ if (part.startsWith('{{') === false) { return `${part}`; } - const fieldKey = part.replaceAll(/({|})/g, '').trim(); + const fieldKey = part.replace(/({|})/g, '').trim(); const field = findTree(tree.value, fieldKey.split('.')); if (!field) return ''; diff --git a/app/src/interfaces/tags/tags.vue b/app/src/interfaces/tags/tags.vue index 343cb28cd1..3e9ae68760 100644 --- a/app/src/interfaces/tags/tags.vue +++ b/app/src/interfaces/tags/tags.vue @@ -131,7 +131,7 @@ export default defineComponent({ if (props.capitalization === 'auto-format') val = formatTitle(val, new RegExp(whitespace)); - val = val.replaceAll(/ +/g, whitespace); + val = val.replace(/ +/g, whitespace); return val; }); diff --git a/app/src/modules/docs/components/markdown.vue b/app/src/modules/docs/components/markdown.vue index 6e10a3025e..2a5b6bcc03 100644 --- a/app/src/modules/docs/components/markdown.vue +++ b/app/src/modules/docs/components/markdown.vue @@ -54,12 +54,9 @@ export default defineComponent({ }, }); - htmlString = htmlString.replaceAll( - hintRegex, - (match: string, type: string, title: string, body: string) => { - return `

${title}

${body}

`; - } - ); + htmlString = htmlString.replace(hintRegex, (match: string, type: string, title: string, body: string) => { + return `

${title}

${body}

`; + }); html.value = htmlString; } diff --git a/app/src/modules/docs/index.ts b/app/src/modules/docs/index.ts index 400ce4415d..2978c3e5b4 100644 --- a/app/src/modules/docs/index.ts +++ b/app/src/modules/docs/index.ts @@ -31,14 +31,14 @@ export default defineModule(({ i18n }) => { for (const doc of directory.children) { if (doc.type === 'file') { routes.push({ - path: '/' + doc.path.replace('.md', '').replaceAll('\\', '/'), + path: '/' + doc.path.replace('.md', '').replace(/\\/g, '/'), component: StaticDocs, }); } else if (doc.type === 'directory') { if (doc.path && doc.children && doc.children.length > 0) routes.push({ - path: '/' + doc.path.replaceAll('\\', '/'), - redirect: '/' + doc.children![0].path.replace('.md', '').replaceAll('\\', '/'), + path: '/' + doc.path.replace(/\\/g, '/'), + redirect: '/' + doc.children![0].path.replace('.md', '').replace(/\\/g, '/'), }); routes.push(...parseRoutes(doc));