3 ms·
Not fond of your function name isValidURL: it’s more about checking if a URL is represented canonically (… except that it also allows https://example.com https:
by chrismorgan 3y ago
Not fond of your function name isValidURL: it’s more about checking if a URL is represented canonically (… except that it also allows https://example.com https://example.com with no trailing slash), rather than just if it’s valid.