]> source.dussan.org Git - redmine.git/commitdiff
Merged r20936 from trunk to 4.2-stable (#34894).
authorGo MAEDA <maeda@farend.jp>
Wed, 14 Apr 2021 00:23:15 +0000 (00:23 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 14 Apr 2021 00:23:15 +0000 (00:23 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@20942 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb
test/helpers/application_helper_test.rb

index 9a16eb76129dc94a5edac8effad773ee978baf13..b328c4c9aad47b08afffbf9c07276ab85584df3f 100644 (file)
@@ -1283,7 +1283,7 @@ module ApplicationHelper
               )|
               (
               (?<sep4>@)
-              (?<identifier3>[A-Za-z0-9_\-@\.]*)
+              (?<identifier3>[A-Za-z0-9_\-@\.]*?)
               )
             )
             (?=
index 106820999da97ad11e087ecb3c9a6bd65459f7dd..730023443c456df285f0d7da65501dd3e4af6c93 100644 (file)
@@ -521,6 +521,7 @@ class ApplicationHelperTest < Redmine::HelperTest
       'user:JSMITH'                 => link_to_user(User.find_by_id(2)),
       'user#2'                      => link_to_user(User.find_by_id(2)),
       '@jsmith'                     => link_to_user(User.find_by_id(2)),
+      '@jsmith.'                    => "#{link_to_user(User.find_by_id(2))}.",
       '@JSMITH'                     => link_to_user(User.find_by_id(2)),
       '@abcd@example.com'           => link_to_user(User.find_by_id(u_email_id)),
       'user:abcd@example.com'       => link_to_user(User.find_by_id(u_email_id)),