Fixed mention regex to support unicode (#2420)

This commit is contained in:
Go Shoemake 2017-05-10 18:47:38 -07:00 committed by Eugen Rochko
parent d7ca846ba8
commit f87af43ee7

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