From 6629fd6f3c15a4eeb9a34c2fd7b1844fe9d08ef5 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Fri, 17 Nov 2023 07:30:18 +0000 Subject: Merged r22445, r22449 and r22450 from trunk to 5.0-stable (#39553). git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22455 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/acts/mentionable.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/redmine/acts/mentionable.rb') diff --git a/lib/redmine/acts/mentionable.rb b/lib/redmine/acts/mentionable.rb index c7b0c0655..24adf04b3 100644 --- a/lib/redmine/acts/mentionable.rb +++ b/lib/redmine/acts/mentionable.rb @@ -98,12 +98,10 @@ module Redmine @([A-Za-z0-9_\-@\.]*?) (?= (?=[[:punct:]][^A-Za-z0-9_\/])| - ,| - \.+$| \s| - \]| - <| - $) + [[:punct:]]? + $ + ) /ix end end -- cgit v1.2.3