You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rules [no-empty-group] and [no-empty-capturing-group] trigger when the group has been filled from a joined array that has been filled dynamically using push.
constarr=[];arr.push("a","b");// simplified; original code processes some other dataconstrex=newRegExp("("+arr.join("|")+")");
This (simplified) example triggers because the rules seem to see only the initialization to an empty array. The rule could be improved by detecting inplace manipulations with push, unshift etc.