Ticket #6726 (closed defect: duplicate)
dojox.validate.isUrl returns true when first character is a number
| Reported by: | guest | Owned by: | peller |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Dojox | Version: | 1.1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
dojo.forEach([
"1notaurl",
"7f03notreal",
"123456",
], function(testStr) {
if(dojox.validate.isUrl(testStr))
console.log(testStr+" is a url");
else
console.log(testStr+" is not a url");
});
Change History
Note: See
TracTickets for help on using
tickets.