refactor(editor): Continue porting components over to composition API (no-changelog) (#8893)
This commit is contained in:
committed by
GitHub
parent
80c4bc443a
commit
6c693e1afd
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user