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

chriso / validator.js / 854 / 1
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 25 Feb 2017 12:03AM UTC
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

24 Feb 2017 11:53PM UTC coverage: 99.129% (+0.3%) from 98.841%
854.1

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

Source Files on job 854.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 854
  • Travis Job 854.1
  • 095509fc on github
  • Prev Job for on master (#852.1)
  • Next Job for on master (#855.1)
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