SyntaxFix
Write A Post
Hire A Developer
Questions
In JavaScript you should pass the i flag to the RegExp constructor as stated in MDN:
i
RegExp
const regex = new RegExp('(abc)', 'i'); regex.test('ABc'); // true