-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[lexical][auto-link] Fix auto link node escapes on second "." #6146
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
I think it's not that easy :P See how it fails now: Screen.Recording.2024-05-20.at.4.34.33.PM.mov |
2ce636f
to
6b180fb
Compare
updated the regexp with a negative lookbehind to exclude special characters at the end |
Hi! So now links doesn't work correctly when you have a dot at the end of the sentence: Screen.Recording.2024-05-21.at.1.01.03.PM.mov |
6b180fb
to
f94a164
Compare
thanks for checking that, should be fixed now |
Description
The period in the separators list
PUNCTUATION_OR_SPACE
leads to an auto-link creation prematurely before the user completes typing. Removing the "." from the list.Inspired by #5275 which was reverted because of Regexp changes.
Closes: #5254 #3546
Test plan
Before
Screen.Recording.2024-05-20.at.12.13.38.mov
After
Screen.Recording.2024-05-20.at.12.14.09.mov