Regex Match Capture Group Intellisense Bug?

Hi,

The attached code executes fine and produces the correct, expected and desired output but shows a formatting "error". I can't seem to workout how to fix this. Maybe there is a different syntax which WebStorm prefers? I've searched stackoverflow and the jetbrains forums for capture group intellisense bugs but not found this specific error mentioned anywhere.

console.log("heeolooo hello".match(/([^])\1+/g))

This code yields a match when 2 or more subsequent characters in a string are the same. It's the capture group "\1" that seems to be the issue.

0
1 comment

submitted to developers as https://youtrack.jetbrains.com/issue/WEB-48900, please follow it for updates

0

Please sign in to leave a comment.