From 8eb9c385653a26016cd4e76b1d3c43527e94c112 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Thu, 16 Nov 2023 21:54:03 +0000 Subject: [PATCH] Fix mention notification is not sent when user pattern is leading by some punctuation marks like ! or ? (39553). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Thomas Löber. git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22441 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/acts/mentionable.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5