Temporary quick fix, remove dash from hashtag regex

This commit is contained in:
Lim Chee Aun 2024-04-13 00:03:28 +08:00
parent 9285a0ba9a
commit aefda31c2a

View file

@ -124,7 +124,7 @@ const MENTION_RE = new RegExp(
// AI-generated, all other regexes are too complicated
const HASHTAG_RE = new RegExp(
`(^|[^=\\/\\w])(#[a-z0-9_]+([a-z0-9_.-]+[a-z0-9_]+)?)(?![\\/\\w])`,
`(^|[^=\\/\\w])(#[a-z0-9_]+([a-z0-9_.]+[a-z0-9_]+)?)(?![\\/\\w])`,
'ig',
);