This website works better with JavaScript.
Home
Explore
Help
Sign In
jyt94
/
closedSocialMastodon
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fixed mention regex to support unicode (
#2420
)
closed-social-v3
Go Shoemake
7 years ago
committed by
Eugen Rochko
parent
53c2274d48
commit
9cd3a6836b
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/models/account.rb
+ 1
- 1
app/models/account.rb
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
Write
Preview
Loading…
Cancel
Save