Not sure, but `URL_REGEXP.test(url)` should be enough.