Skip to content

Commit

Permalink
Merge pull request #707 from AFP-Medialab/jmafoster1/246-fix-birdwatc…
Browse files Browse the repository at this point in the history
…h-links

Now supporting birdwatch URLs
  • Loading branch information
Sallaa authored Jan 22, 2025
2 parents cb419f5 + c441fa1 commit 9f99430
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/NavItems/Assistant/AssistantRuleBook.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ export const KNOWN_LINK_PATTERNS = [
},
{
key: KNOWN_LINKS.TWITTER,
patterns: ["((https?:/{2})?(www.)?(twitter|x).com/\\w{1,15}/status/\\d*)"],
patterns: [
"((https?:/{2})?(www.)?(twitter|x).com/\\w{1,15}/status/\\d*)",
"((https?:/{2})?(www.)?(twitter|x).com/i/birdwatch/t/\\d*)",
],
},
{
key: KNOWN_LINKS.TIKTOK,
Expand Down

0 comments on commit 9f99430

Please sign in to comment.