mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 02:05:39 +03:00
Merge pull request #872 from Steffo99/feature/twitter-crash-fix
Fix crash if a `@username@twitter.com` pseudo-mention is encountered
This commit is contained in:
commit
4d03f8fba4
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ const CODE_BLOCK_END_REGEX = /```$/;
|
|||
const INLINE_CODE_REGEX = /`[^`]+`/;
|
||||
const TWITTER_DOMAIN_REGEX = /(twitter|x)\.com/i;
|
||||
const TWITTER_MENTION_REGEX = /@[a-zA-Z0-9_]+@(twitter|x)\.com/;
|
||||
const TWITTER_MENTION_CAPTURE_REGEX = /(@([a-zA-Z0-9_]+)@(twitter|x)\.com)/;
|
||||
const TWITTER_MENTION_CAPTURE_REGEX = /(@([a-zA-Z0-9_]+)@(twitter|x)\.com)/g;
|
||||
|
||||
function createDOM(html, isDocumentFragment) {
|
||||
const tpl = document.createElement('template');
|
||||
|
|
Loading…
Reference in a new issue