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

gr2m / moment-parseformat / 388
97%

Build:
DEFAULT BRANCH: master
Ran 20 Apr 2021 12:28AM UTC
Jobs 1
Files 2
Run time 1s
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
388

push

travis-ci

web-flow
feat: new formats and several fixes (#90)

* Added support for all sort of odd formats

Support various other formats that are usually not standard, such as
those that mix D with MM, or M with DD, and many others that were not
properly detected before.

Also, improved timezone detection. Instead of the wild card approach
which would incorrectly classify years as time zones in certain cases, a
regex that matched only known timezone values was added.

* Took care of some more issues on github

https://github.com/gr2m/moment-parseformat/issues/63
https://github.com/gr2m/moment-parseformat/issues/61
https://github.com/gr2m/moment-parseformat/issues/60
https://github.com/gr2m/moment-parseformat/issues/59
https://github.com/gr2m/moment-parseformat/issues/52

* Brought the `standard` step back, and cleaned up the code.

I took it out temporarily to speed up the code/test/fix cycle.

* Moved, renamed, and consolidated some test cases

* Added more test cases for various formats

* More support for a variety of odd formats.

All tests pass.

* Added support for a large variety of formats.

* Added tests with a timezone marker at the end.

Removed duplicate tests from large blocks

* More fixes and formats!

* Added new test case

* Added test, version bump

* Update test/moment-parseformat-test.js

* Update test/moment-parseformat-test.js

* Standard formatting compliance

- Replace all tick marks with single quotes
- Replace "let" with "const"

* Fix double-commented lines

Co-authored-by: Scott Hillman <hillmanov@gmail.com>
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>

121 of 147 branches covered (82.31%)

141 of 141 new or added lines in 1 file covered. (100.0%)

234 of 242 relevant lines covered (96.69%)

1256.37 hits per line

Jobs
ID Job ID Ran Files Coverage
3 388.3 20 Apr 2021 12:28AM UTC 0
96.69
Travis Job 388.3
Source Files on build 388
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #388
  • b0592318 on github
  • Prev Build on master (#384)
  • Next Build on master (#389)
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