this repo has no description
0
fork

Configure Feed

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

Remove newline from regex for shortcode

+1 -1
+1 -1
src/components/compose.jsx
··· 131 131 // https://github.com/mastodon/mastodon/blob/23e32a4b3031d1da8b911e0145d61b4dd47c4f96/app/models/custom_emoji.rb#L31 132 132 const SHORTCODE_RE_FRAGMENT = '[a-zA-Z0-9_]{2,}'; 133 133 const SCAN_RE = new RegExp( 134 - `([^A-Za-z0-9_:\\n]|^)(:${SHORTCODE_RE_FRAGMENT}:)(?=[^A-Za-z0-9_:]|$)`, 134 + `(^|[^=\\/\\w])(:${SHORTCODE_RE_FRAGMENT}:)(?=[^A-Za-z0-9_:]|$)`, 135 135 'g', 136 136 ); 137 137