Skip to content

Conversation

@sarab97
Copy link
Contributor

@sarab97 sarab97 commented Jun 13, 2025

Fixes #11935
Match with existing regex in code to ensure its valid twitter link when pasting.

@CLAassistant
Copy link

CLAassistant commented Jun 13, 2025

CLA assistant check
All committers have signed the CLA.

@tiensonqin tiensonqin self-requested a review June 15, 2025 00:37
Copy link
Contributor

@tiensonqin tiensonqin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great, thanks for the fix! 🚀

@tiensonqin tiensonqin merged commit 0feb634 into logseq:master Jun 15, 2025
2 checks passed
katafrakt added a commit to katafrakt/logseq that referenced this pull request Jun 15, 2025
There was a bug that pasting link from domains ending with x.com was
parsed as a ex-Twitter link. But this was not necessarily a link from
this social network. This commit changes the regex to better detect
proper X links and tell them apart from non-X links.

This is a port of an original PR logseq#11942
katafrakt added a commit to katafrakt/logseq that referenced this pull request Jun 15, 2025
There was a bug that pasting link from domains ending with x.com was
parsed as a ex-Twitter link. But this was not necessarily a link from
this social network. This commit changes the regex to better detect
proper X links and tell them apart from non-X links.

This is a port of an original PR logseq#11942
@katafrakt katafrakt mentioned this pull request Jul 12, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

*x.com links converted to Twitter links even if not from x.com

3 participants