Normalize URL with multiple consecutive dots
Closed this issue · 2 comments
jage commented
From #25 (comment)
Instead of:
irb(main):003:0> Twingly::URL.parse("www..hej..se").to_s
=> "http://www..hej..se"
irb(main):004:0> Twingly::URL.parse("www..hej..se").normalized.to_s
=> "http://www..hej..se/"
It would do this:
irb(main):003:0> Twingly::URL.parse("www..hej..se").to_s
=> "http://www..hej..se"
irb(main):004:0> Twingly::URL.parse("www..hej..se").normalized.to_s
=> "http://www.hej.se/"
We might want to change the behaviour in the .NET-normalization as well: #25 (comment)