Fixed mention regex to support unicode (#2420)

This commit is contained in:
Go Shoemake authored and Eugen Rochko committed 2017-05-11 03:47:38 +02:00
1 parent 53c2274d48
commit 9cd3a6836b
1 file changed
+1 -1
+1 -1
View File
@@ -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