Files
2026-07-27 14:07:26 +08:00

7 lines
153 B
JavaScript

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