We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d01104e commit 458671bCopy full SHA for 458671b
src/core/components/keep-alive.js
@@ -12,9 +12,10 @@ function getComponentName (opts: ?VNodeComponentOptions): ?string {
12
function matches (pattern: string | RegExp, name: string): boolean {
13
if (typeof pattern === 'string') {
14
return pattern.split(',').indexOf(name) > -1
15
- } else {
+ } else if (pattern instanceof RegExp) {
16
return pattern.test(name)
17
}
18
+ return false
19
20
21
function pruneCache (cache, filter) {
0 commit comments