summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-11-16 22:16:33 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-11-16 22:16:33 +0000
commit068559e9dec4dc67c58e5f804417126bf1cc792a (patch)
tree0de216710b0b79f22e5a47fa99bdf67b495cdb3c /lib
parent8c66e32b4f4375a0cfa294509ac9767925c89216 (diff)
downloadredmine-068559e9dec4dc67c58e5f804417126bf1cc792a.tar.gz
redmine-068559e9dec4dc67c58e5f804417126bf1cc792a.zip
Revert r22446 and r22447 (#39553).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22448 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/acts/mentionable.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/redmine/acts/mentionable.rb b/lib/redmine/acts/mentionable.rb
index 24adf04b3..c7b0c0655 100644
--- a/lib/redmine/acts/mentionable.rb
+++ b/lib/redmine/acts/mentionable.rb
@@ -98,10 +98,12 @@ module Redmine
@([A-Za-z0-9_\-@\.]*?)
(?=
(?=[[:punct:]][^A-Za-z0-9_\/])|
+ ,|
+ \.+$|
\s|
- [[:punct:]]?
- $
- )
+ \]|
+ <|
+ $)
/ix
end
end