regexp-tree
regexp-tree copied to clipboard
[group-single-chars-to-char-class] corrupts regexp when using square bracket
Optimizes /(\]|a|[12])/
into /([12]a])/
which isn't correct
Thanks, we might need to exclude the ]
at all from this transform. Will appreciate a PR.