From 7a51c4ed1a81cdc366d8f967aefd449e99be65e1 Mon Sep 17 00:00:00 2001 From: Alejandro Gomez Date: Wed, 11 Jan 2023 18:59:13 +0100 Subject: [PATCH] fix: support hashtags in any language --- src/Const.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Const.js b/src/Const.js index 943a589..5b82cbd 100644 --- a/src/Const.js +++ b/src/Const.js @@ -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!@#$%^&*()=+.\/,\[{\]};:'"?><]+)/