logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 9cd3a6836b952bda507734b6a476dfaa9b4640fb
parent: 53c2274d482c40c9d85dfe6f08c86d5b3fbfb9c4
Author: Go Shoemake <marrus-sh@users.noreply.github.com>
Date:   Wed, 10 May 2017 18:47:38 -0700

Fixed mention regex to support unicode (#2420)


Diffstat:

Mapp/models/account.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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