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

Fall back to url if parser fails #4364

Merged
merged 1 commit into from Apr 20, 2023
Merged

Fall back to url if parser fails #4364

merged 1 commit into from Apr 20, 2023

Conversation

acywatson
Copy link
Contributor

#4342 Will break some links that don't use the full protocol and therefore can't be pasted correctly by the URL lib.

This fixes that by falling back to the url in the event of a failure to parse the string passed into theURL constructor.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 19, 2023
@vercel
Copy link

vercel bot commented Apr 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview Apr 19, 2023 9:27pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 19, 2023 9:27pm

@github-actions
Copy link

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 26.94 KB (0%) 539 ms (0%) 63 ms (-42.91% 🔽) 602 ms
packages/lexical-rich-text/dist/LexicalRichText.js 37.8 KB (0%) 757 ms (0%) 90 ms (-35.42% 🔽) 846 ms
packages/lexical-plain-text/dist/LexicalPlainText.js 37.78 KB (0%) 756 ms (0%) 116 ms (-9.95% 🔽) 872 ms

@acywatson acywatson merged commit 454e9fe into main Apr 20, 2023
44 of 45 checks passed
This was referenced May 23, 2023
@fantactuka fantactuka deleted the sani-links-fix branch July 6, 2023 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants