feat: only work with the last match in case where the regex contains global flag #27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-matchBefore-global-flag-case"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fixes: https://github.com/codemirror/dev/issues/1510
I have handled this explicitly for expressions with a global flag, but I feel the last match is the match that should be used in every case here.
The existing extra logic in
ensureAnchormakes me believe there are some conditions that I might not be aware of, hence the explicit global case.Pull request closed