diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-11-16 22:07:51 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-11-16 22:07:51 +0000 |
commit | f75c4c3247182a390e7dabdd20a741a2d1cf21a0 (patch) | |
tree | b208ae7351a821cbf40fc5b40b4f61f08af9e5d7 /lib/redmine | |
parent | fa7c481028c5fcbe473e213387f8d2347ff65e26 (diff) | |
download | redmine-f75c4c3247182a390e7dabdd20a741a2d1cf21a0.tar.gz redmine-f75c4c3247182a390e7dabdd20a741a2d1cf21a0.zip |
Fix mention notification is not sent when user pattern is leading by some punctuation marks like ! or ? (#39553).
Patch by Thomas Löber.
git-svn-id: https://svn.redmine.org/redmine/trunk@22445 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/acts/mentionable.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/redmine/acts/mentionable.rb b/lib/redmine/acts/mentionable.rb index c7b0c0655..35659661f 100644 --- a/lib/redmine/acts/mentionable.rb +++ b/lib/redmine/acts/mentionable.rb @@ -103,7 +103,9 @@ module Redmine \s| \]| <| - $) + [[:punct:]]? + $ + ) /ix end end |