Skip to content

Commit b987c32

Browse files
committed
fixed regexp parameter
1 parent 4de5c5e commit b987c32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function searchStrings (strings, term, {caseSensitive, fuzzy, sortResults
5959
value = value.toLowerCase()
6060
}
6161
if (exactMatch) {
62-
term = new RegExp('/^'+term+'$/', 'i')
62+
term = new RegExp('^' + term + '$', 'i')
6363
}
6464
if (value && value.search(term) !== -1) {
6565
return true

0 commit comments

Comments
 (0)