X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2af0840ff314f9d1e0265a4a1b50fc6db4af9047..cb43e6af9eb0b6356542607b8d71d0a98db0fb4c:/lib/short_link.rb diff --git a/lib/short_link.rb b/lib/short_link.rb index ddf37b67a..43d64041e 100644 --- a/lib/short_link.rb +++ b/lib/short_link.rb @@ -22,7 +22,7 @@ module ShortLink # keep support for old shortlinks which use the @ character, now # replaced by the ~ character because twitter is horribly broken # and we can't have that. - str.gsub!("@", "~") + str.tr!("@", "~") str.each_char do |c| t = ARRAY.index c