Skip to content

Commit 1779b63

Browse files
committed
refactor: do not use lookbehind assertion
1 parent 92cc578 commit 1779b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ export function getComponentPublicInstance(
12031203
}
12041204
}
12051205

1206-
const classifyRE = /(?<=^|[-_])\w/g
1206+
const classifyRE = /(?:^|[-_])\w/g
12071207
const classify = (str: string): string =>
12081208
str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '')
12091209

0 commit comments

Comments
 (0)