If str has event (my favorite) and eventSets[] has event string, current code matches as "event (my favorite)".match(new RegExp("event", "i")) which is wrong.
I'm not sure wildcard related code, but this patch fixes this situation in my schedule environment.
If
str
hasevent (my favorite)
andeventSets[]
hasevent
string, current code matches as"event (my favorite)".match(new RegExp("event", "i"))
which is wrong.I'm not sure
wildcard
related code, but this patch fixes this situation in my schedule environment.