AidanSpeakss / streamer-mode-for-firefox

Hides personal information from pages, similar to Discord's Streamer mode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regex as a keyword

MKrabs opened this issue · comments

commented

Well.. not much to say, except adding regex capabilities to the keywords.

  • xxCoolName[0-9]+xx
commented

I honestly think thats already an unintended feature that already exists, as it just takes your input and parses it straght to the RegExp func

const regEx = new RegExp(pii, "ig");

commented

I think you are right about this, I'll try testing out a bit of regex.

commented

Yeah, that's hilarious, this is already a feature then. Although I suspect it causes bugs, as there is no distinction between regex and non-regex. I'll add a separate regex field quickly, to solve any problems this may have caused.

commented

This feature has been added and will be in the 1.7 release.

commented

Sorry to reopen this, but in additon to what you have already added what about having the abbility to disable/enable the case sensitivity of regex as currently its hard coded?

(cant open the issue again but ik youll see this Aidan!)

commented

If you create a new issue with that specific suggestion, you can just link back to this one.