mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
955339668b
Why this change? Prior this change, we were using `URI.regexp` which was too strict as it doesn't allow a URL path. What does this change do? Just parse the string using `URI.parse` and if it doesn't raise an error we consider the string to be a valid URL