note
This commit is contained in:
parent
81dcf325c3
commit
389ea6cf34
@ -18,6 +18,11 @@ export const any = (filter: Filter, input: string) => {
|
||||
// console.log(JSON.stringify(words));
|
||||
// return words.some(word => new RegExp(`\\b${word}\\b`).test(input));
|
||||
|
||||
// TODO:
|
||||
// The below code works, but I'd like to use regex as was done in pyrss.
|
||||
// The above commented code does not work, figure it out.
|
||||
|
||||
|
||||
const inputWords = input.split(" ").map(word => filter.is_insensitive ? word.toLowerCase() : word);
|
||||
const filterWords = filter.value.split(" ").map(word => filter.is_insensitive ? word.toLowerCase() : word);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user