MCPcopy
hub / github.com/vuejs/core / getEscapedPropName

Function getEscapedPropName

packages/compiler-sfc/src/script/utils.ts:139–141  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

137 /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~\-]/
138
139export function getEscapedPropName(key: string): string {
140 return propNameEscapeSymbolsRE.test(key) ? JSON.stringify(key) : key
141}
142
143export const isJS = (...langs: (string | null | undefined)[]): boolean =>
144 langs.some(lang => lang === 'js' || lang === 'jsx')

Callers 2

genRuntimePropsFunction · 0.90
genRuntimePropFromTypeFunction · 0.90

Calls 1

testMethod · 0.80

Tested by

no test coverage detected