Skip to content

Fall back to url if parser fails - #4364

Merged
acywatson merged 1 commit into
mainfrom
sani-links-fix
Apr 20, 2023
Merged

acywatson merged 1 commit into
mainfrom
sani-links-fix

Conversation

@acywatson

Copy link
Copy Markdown
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

vercel Bot commented Apr 19, 2023 •

Copy link
Copy Markdown

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
Copy Markdown

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
This was referenced May 23, 2023
@fantactuka
fantactuka deleted the sani-links-fix branch July 6, 2023 20:15

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 62512364 Deployed Apr 19, 2023 by vercel[bot]
Preview – lexical — 62512364 Deployed Apr 19, 2023 by vercel[bot]
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.

3 participants