Skip to content

Commit 3f0c628

Browse files
committed
fix: avoid unnecessary lowercase coersion in component name validation
close #7237
1 parent 90ed482 commit 3f0c628

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/util/options.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ export function validateComponentName (name: string) {
260260
'and must start with a letter.'
261261
)
262262
}
263-
const lower = name.toLowerCase()
264-
if (isBuiltInTag(lower) || config.isReservedTag(lower)) {
263+
if (isBuiltInTag(name) || config.isReservedTag(name)) {
265264
warn(
266265
'Do not use built-in or reserved HTML elements as component ' +
267266
'id: ' + name

0 commit comments

Comments
 (0)