Defect #26892 » 0001-user-link-syntax-should-work-also-with-logins-in-upp.patch
app/helpers/application_helper.rb | ||
---|---|---|
1010 | 1010 |
)| |
1011 | 1011 |
( |
1012 | 1012 |
(?<sep4>@) |
1013 |
(?<identifier3>[a-z0-9_\-@\.]*) |
|
1013 |
(?<identifier3>[A-Za-z0-9_\-@\.]*)
|
|
1014 | 1014 |
) |
1015 | 1015 |
) |
1016 | 1016 |
(?= |
test/helpers/application_helper_test.rb | ||
---|---|---|
391 | 391 |
"http://foo.bar/FAQ#3" => '<a class="external" href="http://foo.bar/FAQ#3">http://foo.bar/FAQ#3</a>', |
392 | 392 |
# user |
393 | 393 |
'user:jsmith' => link_to_user(User.find_by_id(2)), |
394 |
'user:JSMITH' => link_to_user(User.find_by_id(2)), |
|
394 | 395 |
'user#2' => link_to_user(User.find_by_id(2)), |
395 | 396 |
'@jsmith' => link_to_user(User.find_by_id(2)), |
397 |
'@JSMITH' => link_to_user(User.find_by_id(2)), |
|
396 | 398 |
'@abcd@example.com' => link_to_user(User.find_by_id(u_email_id)), |
397 | 399 |
'user:abcd@example.com' => link_to_user(User.find_by_id(u_email_id)), |
398 | 400 |
'@foo.bar@example.com' => link_to_user(User.find_by_id(u_email_id_2)), |