Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: only work with the last match in case where the regex contains global flag #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nsrCodes
Copy link

fixes: codemirror/dev#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 ensureAnchor makes me believe there are some conditions that I might not be aware of, hence the explicit global case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant