Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make regex case insensitive? #5

Open
ministe2003 opened this issue Jun 11, 2024 · 0 comments
Open

How to make regex case insensitive? #5

ministe2003 opened this issue Jun 11, 2024 · 0 comments

Comments

@ministe2003
Copy link

Thanks for this extension. How can I make the regex case insensitive? I've tried the following but can't get it to work:

regex": "^\\w*PROD$",
"flags": "i",

"regex": "^(?i)\\w*prod$",
"regex": "^\\w*(?i)prod$",
(Those two actually cause the whole extension to stop working)

and a whole lot of others around adding /i at the end and attempting to escape that in a number of ways.

The only way I can get it to work is
"regex": "^(\\w*[pP][rR][oO][dD])$",
which I really don't like!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant