anchorme.js icon indicating copy to clipboard operation
anchorme.js copied to clipboard

Incorrectly validates "qwantz" as valid URL.

Open molecule opened this issue 4 years ago • 0 comments

var url = "qwantz";
var result = anchorme.validate.url(url);
console.log(result);
// prints true

Any string gets incorrectly validated as a valid URL. Shouldn't it need to have at least .com (or .biz, etc)?

molecule avatar Oct 08 '20 18:10 molecule