0001-Fix-user-mention-using-not-working-at-the-end-of-lin.patch

Marius BALTEANU, 2021-04-11 09:46

Download (1.64 KB)

View differences:

app/helpers/application_helper.rb
1283 1283
              )|
1284 1284
              (
1285 1285
              (?<sep4>@)
1286
              (?<identifier3>[A-Za-z0-9_\-@\.]*)
1286
              (?<identifier3>[A-Za-z0-9_\-@\.]*?)
1287 1287
              )
1288 1288
            )
1289 1289
            (?=
test/helpers/application_helper_test.rb
521 521
      'user:JSMITH'                 => link_to_user(User.find_by_id(2)),
522 522
      'user#2'                      => link_to_user(User.find_by_id(2)),
523 523
      '@jsmith'                     => link_to_user(User.find_by_id(2)),
524
      '@jsmith.'                    => "#{link_to_user(User.find_by_id(2))}.",
524 525
      '@JSMITH'                     => link_to_user(User.find_by_id(2)),
525 526
      '@abcd@example.com'           => link_to_user(User.find_by_id(u_email_id)),
526 527
      'user:abcd@example.com'       => link_to_user(User.find_by_id(u_email_id)),
527
-