From: Marius Balteanu Date: Thu, 16 Nov 2023 21:54:03 +0000 (+0000) Subject: Fix mention notification is not sent when user pattern is leading by some punctuation... X-Git-Tag: 5.0.7~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8eb9c385653a26016cd4e76b1d3c43527e94c112;p=redmine.git 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/branches/5.0-stable@22441 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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