An empty regular expression such as //
is invalid and parsed as a line comment instead, which breaks other syntax within the code. I would expect the better-regex
rule to not propose code with empty regular expressions.
The following is a minimal example:
const expression = /|/;
I would expect this expression to be corrected to something like:
const expression = /(?:)/;
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too