7 lines
153 B
JavaScript
7 lines
153 B
JavaScript
exports = function(val) {
|
|
return regUrl.test(val);
|
|
};
|
|
var regUrl = /^(?:\w+:)?\/\/([^\s.]+\.\S{2}|localhost[:?\d]*)\S*$/;
|
|
|
|
module.exports = exports;
|