X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7ce77006fad5205dc85206d5841657967c6f16c3..c9d35839befe92d916425baa4daec7dd77ade929:/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