You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In JavaScript regular expressions, \w only matches [A-Za-z0-9_].
So it doesn't work well if we put any non-English characters in the tag, like #测试 or #テスト.
Perhaps \w+ should be replaced by something like (?:\w|[^\u0000-\u007F])+ or [^\u0000-\u0029\u0040\u005b-\u0060\u007b-\u007f], as suggested in a StackOverflow Answer?
The text was updated successfully, but these errors were encountered:
In JavaScript regular expressions,
\w
only matches[A-Za-z0-9_]
.So it doesn't work well if we put any non-English characters in the tag, like
#测试
or#テスト
.Perhaps
\w+
should be replaced by something like(?:\w|[^\u0000-\u007F])+
or[^\u0000-\u0029\u0040\u005b-\u0060\u007b-\u007f]
, as suggested in a StackOverflow Answer?The text was updated successfully, but these errors were encountered: