diff --git a/src/lib/matches.js b/src/lib/matches.js index 5eefdea..9ca587b 100644 --- a/src/lib/matches.js +++ b/src/lib/matches.js @@ -3,7 +3,7 @@ function fuzzyMatches(textToMatch, node, matcher, normalizer) { return textToMatch == matcher; } - if (!textToMatch) { + if (!textToMatch && textToMatch !== '') { return false; } @@ -22,7 +22,7 @@ function matches(textToMatch, node, matcher, normalizer) { return textToMatch === matcher; } - if (!textToMatch) { + if (!textToMatch && textToMatch !== '') { return false; }