Skip to content

Commit 3fc8331

Browse files
alex-bowersyyx990803
authored andcommitted
Add main tag to commonTagRE (#4103)
1 parent d18494b commit 3fc8331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { warn } from './debug'
22
import { resolveAsset } from './options'
33
import { getBindAttr } from './dom'
44

5-
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
5+
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|main)$/i
66
export const reservedTagRE = /^(slot|partial|component)$/i
77

88
let isUnknownElement

0 commit comments

Comments
 (0)