Merge pull request #762 from directus/fix-750

Replace `replaceAll` with `replace`
This commit is contained in:
Rijk van Zanten
2020-10-22 20:18:12 +02:00
committed by GitHub
4 changed files with 8 additions and 11 deletions

View File

@@ -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;
});