summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-11-16 22:11:57 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-11-16 22:11:57 +0000
commit8c66e32b4f4375a0cfa294509ac9767925c89216 (patch)
tree4b6f3dd8a2e71c75d1d9a267d3fa970c20cb6d94 /lib
parentca95aed41b7afda2e7ce8bda81fcef02dc8548f2 (diff)
downloadredmine-8c66e32b4f4375a0cfa294509ac9767925c89216.tar.gz
redmine-8c66e32b4f4375a0cfa294509ac9767925c89216.zip
Simply regex (#39553).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22447 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/acts/mentionable.rb8
1 files changed, 3 insertions, 5 deletions
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