Skip to content

Commit 20293f6

Browse files
baiwusanyu-csxzz
andauthored
Update packages/compiler-sfc/src/compileScript.ts
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
1 parent 45b6e69 commit 20293f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2364,6 +2364,6 @@ export function resolveObjectKey(node: Node, computed: boolean) {
23642364
* key may contain symbols such
23652365
* e.g. onUpdate:modelValue -> "onUpdate:modelValue"
23662366
*/
2367-
function getFinalPropsKey(key: string) {
2367+
function getEscapedKey(key: string) {
23682368
return /^[a-z0-9]+$/i.test(key) ? key : `"${key}"`
23692369
}

0 commit comments

Comments
 (0)