We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de5c5e commit b987c32Copy full SHA for b987c32
1 file changed
src/util.js
@@ -59,7 +59,7 @@ export function searchStrings (strings, term, {caseSensitive, fuzzy, sortResults
59
value = value.toLowerCase()
60
}
61
if (exactMatch) {
62
- term = new RegExp('/^'+term+'$/', 'i')
+ term = new RegExp('^' + term + '$', 'i')
63
64
if (value && value.search(term) !== -1) {
65
return true
0 commit comments