chrmarti / vscode-regex

MIT License
157 stars 33 forks source link

Support RegExp object with string literal #44

Open SGThr7 opened 3 years ago

SGThr7 commented 3 years ago

In this case, we must use string literal but this extension does not detect regex object with string literal.

const abc = 'def'
const reg = new RegExp(`test\\.${abc}`) // match to 'test.def' but can't test