Version: 1.0.01.0.12.0.03.0.04.0.05.0.06.0.06.1.0
'use strict';
const urlRegex = require('url-regex')({exact: true});
module.exports = url => {
if (typeof url !== 'string') {
throw new TypeError('Expected a string');
}
return urlRegex.test(url.trim());
};