victorgz / vscode-salesforce-colorg

VSCode extension to automatically change the workspace colors based on the Salesforce org you're connected to
https://marketplace.visualstudio.com/items?itemName=victorgz.vscode-salesforce-colorg
MIT License
7 stars 1 forks source link

How to make regex case insensitive? #5

Open ministe2003 opened 4 months ago

ministe2003 commented 4 months ago

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!