• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

chriso / validator.js / 854
99%

Build:
DEFAULT BRANCH: master
Ran 25 Feb 2017 12:03AM UTC
Jobs 1
Files 65
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
854

push

travis-ci

chriso
Remove the isDate() validator

It attempts to validate too many different formats, and as a
result there are edge cases which cannot be resolved.

Additionally, since we make use of the underlying JS engine's date
parser, there have been cases where a date might be valid in one
engine but not valid in another (e.g. #602).

If you need date validation, try using isISO8601(), or try rolling
your own regex which accepts dates in a specific format, e.g.

   validator.matches(date, /^\d{2}/\d{2}/\d{4}$/)

The validator might make a return at some point, but if so it would
require a format string (e.g. #561).

1138 of 1148 relevant lines covered (99.13%)

57.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 854.1 25 Feb 2017 12:03AM UTC 0
99.13
Travis Job 854.1
Source Files on build 854
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #854
  • 095509fc on github
  • Prev Build on master (#852)
  • Next Build on master (#855)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc