Browse Source

feat: support RegExp in ignoredElements (#6769)

dev
Raymond Muller 7 years ago
committed by Evan You
parent
commit
795b908095
  1. 9
      src/core/vdom/patch.js

9
src/core/vdom/patch.js

@ -120,7 +120,14 @@ export function createPatchFunction (backend) {
if (
!inPre &&
!vnode.ns &&
!(config.ignoredElements.length && config.ignoredElements.indexOf(tag) > -1) &&
!(
config.ignoredElements.length &&
config.ignoredElements.some(ignore => {
return ignore instanceof RegExp
? ignore.test(tag)
: ignore === tag
})
) &&
config.isUnknownElement(tag)
) {
warn(

Loading…
Cancel
Save