Commit acb22b418a88128985716d003ed2f5465848fc5c

Authored by Fabio Teixeira
Committed by Marcos Pereira
1 parent ba4fc502

Fix regex to not get the dot(.) after a mention

Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
(cherry picked from commit 960397a99db1fa663df8c86b535e6ea0a6879c91)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/mention_helper.rb
1 module MentionHelper 1 module MentionHelper
2 def mention_search_regex 2 def mention_search_regex
3 - /(?:^\s?|\s)@([^\s]+)/m 3 + /(?:^\s?|\s)@([^\s?:^\.]+)/m
4 end 4 end
5 5
6 def has_mentions? text="" 6 def has_mentions? text=""