about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorGo Shoemake <marrus-sh@users.noreply.github.com>2017-05-10 18:47:38 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-05-11 03:47:38 +0200
commit9cd3a6836b952bda507734b6a476dfaa9b4640fb (patch)
tree841a0b63608359b2ecca32cfc0c8c7b5a26a0f4d /app
parent53c2274d482c40c9d85dfe6f08c86d5b3fbfb9c4 (diff)
Fixed mention regex to support unicode (#2420)
Diffstat (limited to 'app')
-rw-r--r--app/models/account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index c2dc77d93..d43cae038 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -39,7 +39,7 @@
 #
 
 class Account < ApplicationRecord
-  MENTION_RE = /(?:^|[^\/\w])@([a-z0-9_]+(?:@[a-z0-9\.\-]+[a-z0-9]+)?)/i
+  MENTION_RE = /(?:^|[^\/[:word:]])@([a-z0-9_]+(?:@[a-z0-9\.\-]+[a-z0-9]+)?)/i
 
   include AccountAvatar
   include AccountHeader