diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-14 00:25:16 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-14 00:25:16 +0000 |
commit | 4261c16574a9dbe6e4be81dbd8a8f311eb7f9769 (patch) | |
tree | daef1ddb54e619508c21cf0d19d002dd79078e19 | |
parent | f446fc7bf2a914b3b40b7ac4bb420e3ca4482110 (diff) | |
download | redmine-4261c16574a9dbe6e4be81dbd8a8f311eb7f9769.tar.gz redmine-4261c16574a9dbe6e4be81dbd8a8f311eb7f9769.zip |
Merged r20936 from trunk to 4.1-stable (#34894).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@20943 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/application_helper.rb | 2 | ||||
-rw-r--r-- | test/helpers/application_helper_test.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b5eb707aa..8b5d48c85 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1190,7 +1190,7 @@ module ApplicationHelper )| ( (?<sep4>@) - (?<identifier3>[A-Za-z0-9_\-@\.]*) + (?<identifier3>[A-Za-z0-9_\-@\.]*?) ) ) (?= diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 3fc1f90ad..2514e0721 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -456,6 +456,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)), |