Opened 6 years ago

Closed 6 years ago

#6726 closed defect (duplicate)

dojox.validate.isUrl returns true when first character is a number

Reported by: guest Owned by: peller
Priority: high Milestone:
Component: Dojox Version: 1.1.0
Keywords: Cc:
Blocked by: Blocking:

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 (1)

comment:1 Changed 6 years ago by dante

  • Resolution set to duplicate
  • Status changed from new to closed

dup of #2347 ...

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

Note: See TracTickets for help on using tickets.