fix: support hashtags in any language

This commit is contained in:
Alejandro Gomez 2023-01-11 18:59:13 +01:00
parent ac71d93dd7
commit 7a51c4ed1a
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -66,4 +66,4 @@ export const YoutubeUrlRegex = /^(?:https?:\/\/)?(?:www|m\.)?(?:youtu\.be\/|yout
/**
* Hashtag regex
*/
export const HashtagRegex = /(#[a-z\d-]+)/ig
export const HashtagRegex = /(#[^\s!@#$%^&*()=+.\/,\[{\]};:'"?><]+)/