Skip to content
Snippets Groups Projects
Commit 9cd3a683 authored by Go Shoemake's avatar Go Shoemake Committed by Eugen Rochko
Browse files

Fixed mention regex to support unicode (#2420)

parent 53c2274d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment