]> source.dussan.org Git - redmine.git/commitdiff
Fix mention notification is not sent when user pattern is leading by some punctuation...
authorMarius Balteanu <marius.balteanu@zitec.com>
Thu, 16 Nov 2023 21:54:03 +0000 (21:54 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Thu, 16 Nov 2023 21:54:03 +0000 (21:54 +0000)
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

index c7b0c065545ea0aa59d75ced5355029b6d4b426b..35659661f43553a6ad982b31d717209da0263b81 100644 (file)
@@ -103,7 +103,9 @@ module Redmine
             \s|
             \]|
             <|
-            $)
+            [[:punct:]]?
+            $
+          )
         /ix
       end
     end