refactor(editor): Continue porting components over to composition API (no-changelog) (#8893)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-03-15 12:43:08 +01:00
committed by GitHub
parent 80c4bc443a
commit 6c693e1afd
39 changed files with 989 additions and 1253 deletions

View File

@@ -23,8 +23,8 @@ export default function () {
args = {} as unknown as Array<string | object>;
}
return str.replace(RE_NARGS, (match, prefix, i, index: number) => {
let result;
return str.replace(RE_NARGS, (match, _, i, index: number) => {
let result: string | object | null;
if (str[index - 1] === '{' && str[index + match.length] === '}') {
return i;