+2
-1
lines changedFilter options
+2
-1
lines changed Original file line number Diff line number Diff line change
@@ -12,9 +12,10 @@ function getComponentName (opts: ?VNodeComponentOptions): ?string {
12
12
function matches (pattern: string | RegExp, name: string): boolean {
13
13
if (typeof pattern === 'string') {
14
14
return pattern.split(',').indexOf(name) > -1
15
-
} else {
15
+
} else if (pattern instanceof RegExp) {
16
16
return pattern.test(name)
17
17
}
18
+
return false
18
19
}
19
20
20
21
function pruneCache (cache, filter) {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4