eslint-plugin-optimize-regex icon indicating copy to clipboard operation
eslint-plugin-optimize-regex copied to clipboard

Support `d` flag

Open RebeccaStevens opened this issue 1 year ago • 0 comments
trafficstars

Any regex using the d flag is reported.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags

Ideally, this should be fixed in the upstream, but as the d flag doesn't really change how the regex executes, a workaround could be to simply remove the d flag before passing to the optimize library.

RebeccaStevens avatar Feb 29 '24 01:02 RebeccaStevens