Skip to content

Commit b72f5cd

Browse files
yyx990803lovelope
authored andcommittedFeb 1, 2018
fix: avoid unnecessary lowercase coersion in component name validation
close vuejs#7237
1 parent 4b0ba32 commit b72f5cd

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)
Please sign in to comment.