Skip to content

Commit

Permalink
Update twitter to allow for any char
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Feb 26, 2023
1 parent ec67f0d commit 88966da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/format/records/twitter/twitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export const formatTwitterRules = formatter([
record.replace(/^(https?:\/\/)?(www\.)?(mobile\.)?twitter\.com\//, ''),
(record) => record.replace(/^@/, ''),
(record) => record.replace(/\/$/, ''),
(record) => (/^[\dA-Za-z]{1,15}$/.test(record) ? `@${record}` : undefined),
(record) => (/^.{1,15}$/.test(record) ? `@${record}` : undefined),
]);

0 comments on commit 88966da

Please sign in to comment.