this repo has no description
0
fork

Configure Feed

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

Add basic unicode awareness to mention highlighting

+2 -2
+2 -2
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}(?:@[\\w.-]+[\\w]+)?)`, 112 - 'ig', 111 + `(^|[^=\\/\\w])(@${USERNAME_RE.source}(?:@[\\p{L}\\w.-]+[\\w]+)?)`, 112 + 'uig', 113 113 ); 114 114 115 115 // AI-generated, all other regexes are too complicated