this repo has no description
0
fork

Configure Feed

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

Merge pull request #356 from rakoo/dot-mention

Don't highlight mention when it's prepended by a dot

authored by

Chee Aun and committed by
GitHub
aefbfd59 f213a8e0

+1 -1
+1 -1
src/components/compose.jsx
··· 108 108 // https://github.com/mastodon/mastodon/blob/c03bd2a238741a012aa4b98dc4902d6cf948ab63/app/models/account.rb#L69 109 109 const USERNAME_RE = /[a-z0-9_]+([a-z0-9_.-]+[a-z0-9_]+)?/i; 110 110 const MENTION_RE = new RegExp( 111 - `(^|[^=\\/\\w])(@${USERNAME_RE.source}(?:@[\\p{L}\\w.-]+[\\w]+)?)`, 111 + `(^|[^=\\/\\w.])(@${USERNAME_RE.source}(?:@[\\p{L}\\w.-]+[\\w]+)?)`, 112 112 'uig', 113 113 ); 114 114