fix(xo-server/logs-cli): dont fail on non-string value
This commit is contained in:
parent
1dffab0bb8
commit
5c901d7c1e
@ -31,6 +31,10 @@ module.exports = function globMatcher(patterns, opts) {
|
||||
const nAny = anyMustMatch.length
|
||||
|
||||
return function (string) {
|
||||
if (typeof string !== 'string') {
|
||||
return false
|
||||
}
|
||||
|
||||
let i
|
||||
|
||||
for (i = 0; i < nNone; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user