Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Commit 1820077

Browse files
mcgloneleviROOTbcarroll22
authored andcommitted
fix: update matches to account for empty strings (#87)
Closes #86
1 parent 251c07d commit 1820077

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/matches.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function fuzzyMatches(textToMatch, node, matcher, normalizer) {
33
return textToMatch == matcher;
44
}
55

6-
if (!textToMatch) {
6+
if (!textToMatch && textToMatch !== '') {
77
return false;
88
}
99

@@ -22,7 +22,7 @@ function matches(textToMatch, node, matcher, normalizer) {
2222
return textToMatch === matcher;
2323
}
2424

25-
if (!textToMatch) {
25+
if (!textToMatch && textToMatch !== '') {
2626
return false;
2727
}
2828

0 commit comments

Comments
 (0)