We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ac18d commit 6c12224Copy full SHA for 6c12224
src/invidious/helpers/utils.cr
@@ -367,7 +367,7 @@ def fetch_random_instance
367
end
368
369
def reduce_uri(uri : URI | String, max_length : Int32 = 50, suffix : String = "…") : String
370
- str = uri.to_s.sub(/https?:\/\//, "")
+ str = uri.to_s.sub(/^https?:\/\//, "")
371
if str.size > max_length
372
str = "#{str[0, max_length]}#{suffix}"
373
0 commit comments