Bug Tracker

Opened 12 years ago

Last modified 11 years ago

#4135 closed bug

[validate] number validation method fails if first char is decimal — at Initial Version

Reported by: ryan.rch Owned by:
Priority: major Milestone: 1.3.2
Component: plugin Version: 1.3.1
Keywords: validate plugin Cc:
Blocked by: Blocking:

Description

succeeds for '0.25' but fails for '.25'

I suggest modifying the regexp as such: /-?(\d*|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value);

seems to work for me.

This site says to file with author, while author says to file here...

Change History (0)

Note: See TracTickets for help on using tickets.