this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #855 from Steffo99/feature/hashtag-fix

Do not save state between regex executions

authored by

Chee Aun and committed by
GitHub
0eaa4b0c e2086a11

+1 -1
+1 -1
src/utils/enhance-content.js
··· 27 27 const INLINE_CODE_REGEX = /`[^`]+`/; 28 28 const TWITTER_DOMAIN_REGEX = /(twitter|x)\.com/i; 29 29 const TWITTER_MENTION_REGEX = /@[a-zA-Z0-9_]+@(twitter|x)\.com/; 30 - const TWITTER_MENTION_CAPTURE_REGEX = /(@([a-zA-Z0-9_]+)@(twitter|x)\.com)/g; 30 + const TWITTER_MENTION_CAPTURE_REGEX = /(@([a-zA-Z0-9_]+)@(twitter|x)\.com)/; 31 31 32 32 function createDOM(html, isDocumentFragment) { 33 33 const tpl = document.createElement('template');