mirror of https://github.com/vuejs/core.git
fix(compiler-core): recognize empty string as non-identifier (#12553)
This commit is contained in:
parent
d3af67e878
commit
ce933390ad
|
@ -63,7 +63,7 @@ export function isCoreComponent(tag: string): symbol | void {
|
|||
}
|
||||
}
|
||||
|
||||
const nonIdentifierRE = /^\d|[^\$\w\xA0-\uFFFF]/
|
||||
const nonIdentifierRE = /^$|^\d|[^\$\w\xA0-\uFFFF]/
|
||||
export const isSimpleIdentifier = (name: string): boolean =>
|
||||
!nonIdentifierRE.test(name)
|
||||
|
||||
|
|
Loading…
Reference in New Issue