diff --git a/src/util.js b/src/util.js index 5bf94fe..3997ebf 100644 --- a/src/util.js +++ b/src/util.js @@ -60,7 +60,9 @@ export function searchStrings (strings, term, {caseSensitive, fuzzy, sortResults } if (exactMatch) { term = new RegExp('^' + term + '$', 'i') - } + } else if (regexMatch) { + term = new RegExp(term, 'i') + } if (value && value.search(term) !== -1) { return true }