Skip to content

Commit

Permalink
fix: avoid unnecessary lowercase coersion in component name validation
Browse files Browse the repository at this point in the history
close #7237
  • Loading branch information
yyx990803 committed Dec 14, 2017
1 parent 90ed482 commit 3f0c628
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/util/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,7 @@ export function validateComponentName (name: string) {
'and must start with a letter.'
)
}
const lower = name.toLowerCase()
if (isBuiltInTag(lower) || config.isReservedTag(lower)) {
if (isBuiltInTag(name) || config.isReservedTag(name)) {
warn(
'Do not use built-in or reserved HTML elements as component ' +
'id: ' + name
Expand Down

0 comments on commit 3f0c628

Please sign in to comment.