fix(xo-server/logs-cli): dont fail on non-string value

This commit is contained in:
Julien Fontanet 2020-07-01 18:01:34 +02:00
parent 1dffab0bb8
commit 5c901d7c1e

View File

@ -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) {