Skip to content

Commit

Permalink
Merge pull request #37 from everettsouthwick/feature/add-x
Browse files Browse the repository at this point in the history
feat: add support for x
  • Loading branch information
everettsouthwick authored Aug 26, 2023
2 parents 8b3b18d + c4f1db7 commit f794586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constants/platforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const platforms = [
},
{
name: 'Twitter',
pattern: /(https?:\/\/([a-zA-Z0-9-]+\.)?twitter\.[^?]+)/g,
replacement: (url) => url.replace('twitter.', 'vxtwitter.'),
pattern: /(https?:\/\/(?:x\.)?twitter\.[^?]+)/g,
replacement: (url) => url.replace(/(x\.)?twitter\./, 'vxtwitter.'),
},
{
name: 'Bluesky',
Expand Down

0 comments on commit f794586

Please sign in to comment.