]> source.dussan.org Git - redmine.git/commitdiff
Simply regex (#39553).
authorMarius Balteanu <marius.balteanu@zitec.com>
Thu, 16 Nov 2023 22:11:57 +0000 (22:11 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Thu, 16 Nov 2023 22:11:57 +0000 (22:11 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22447 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/acts/mentionable.rb

index c7b0c065545ea0aa59d75ced5355029b6d4b426b..24adf04b3f5a0c296f53c8e24e0ce5b859ed8af8 100644 (file)
@@ -98,12 +98,10 @@ module Redmine
           @([A-Za-z0-9_\-@\.]*?)
           (?=
             (?=[[:punct:]][^A-Za-z0-9_\/])|
-            ,|
-            \.+$|
             \s|
-            \]|
-            <|
-            $)
+            [[:punct:]]?
+            $
+          )
         /ix
       end
     end