From f75c4c3247182a390e7dabdd20a741a2d1cf21a0 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Thu, 16 Nov 2023 22:07:51 +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=UTF-8 Content-Transfer-Encoding: 8bit Patch by Thomas Löber. git-svn-id: https://svn.redmine.org/redmine/trunk@22445 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