Temporary quick fix, remove dash from hashtag regex

pull/501/head
Lim Chee Aun 2024-04-13 00:03:28 +08:00
rodzic 9285a0ba9a
commit aefda31c2a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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',
);