mirror of
https://github.com/discourse/discourse.git
synced 2025-03-28 22:27:06 +08:00

Parsing a URL with `URI` is not sufficient as the following cases are considered valid: URI.parse("http://https://google.com") => #<URI::HTTP http://https//google.com>