Skip to content

Commit 55d6292

Browse files
committed
make native/reserved tag regex case-insensitive
1 parent 9b490af commit 55d6292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { resolveAsset } from './options'
33
import { getAttr, getBindAttr } from './dom'
44
import { isArray, isPlainObject, isObject, hasOwn } from './lang'
55

6-
export const commonTagRE = /^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer)$/
7-
export const reservedTagRE = /^(slot|partial|component)$/
6+
export const commonTagRE = /^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer)$/i
7+
export const reservedTagRE = /^(slot|partial|component)$/i
88

99
let isUnknownElement
1010
if (process.env.NODE_ENV !== 'production') {

0 commit comments

Comments
 (0)