Ticket #6726 (closed defect: duplicate)

Opened 6 days ago

Last modified 5 days ago

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

Changed 5 days ago by dante

  • status changed from new to closed
  • resolution set to duplicate

dup of #2347 ...

the spec says 12345 (as well as 1notaurl) are all valid urls.

Note: See TracTickets for help on using tickets.