FIX: Hashtags should work for non-english characters

This commit is contained in:
Vinoth Kannan
2018-12-26 22:12:40 +05:30
parent 5381096bfd
commit 2076f371b3
2 changed files with 7 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ function addHashtag(buffer, matches, state) {
export function setup(helper) {
helper.registerPlugin(md => {
const rule = {
matcher: /#([\w-:]{1,101})/,
matcher: /#([\u00C0-\u1FFF\u2C00-\uD7FF\w-:]{1,101})/,
onMatch: addHashtag
};