diff --git a/src/core/vdom/patch.js b/src/core/vdom/patch.js index f41f5a90763..7cbe44bb487 100644 --- a/src/core/vdom/patch.js +++ b/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(