HCAWN / gcal-multical-event-merge

Browser extension that visually merges the same event on multiple Google Calendars into one event.
GNU General Public License v3.0
28 stars 7 forks source link

Anchor matching string to head and tail to avoid invalid partial match #41

Open kuriyama opened 6 days ago

kuriyama commented 6 days ago

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.