iloveitaly / hyper-focus

Block hosts, apps, specific urls (with query string vars!), launch scripts on wake, and generally optimize your productivity and focus
MIT License
50 stars 2 forks source link

Replace substring match with regex matching #6

Closed dgfl-gh closed 9 months ago

dgfl-gh commented 1 year ago

As asked in #4, the regex matching feature by itself.

dgfl-gh commented 1 year ago

Now I would say the method quite wasteful, since I split the same array every single call. Not sure where to store the split arrays though, maybe in the configuration itself?

iloveitaly commented 9 months ago

Sorry it took an age for me to merge this in! Just added your contribution and tweaked it a bit. Curious your feedback if you get a chance to try it out!