gr2m / moment-parseformat

A moment.js plugin to extract the format of a date/time string
http://gr2m.github.io/moment-parseformat
Apache License 2.0
45 stars 30 forks source link

Fixed fractional second parsing with a single digit hour. #45

Closed mgd134 closed 8 years ago

mgd134 commented 8 years ago

There was an issue with parsing fractional seconds when using a single digit hour. For example, 05:30:11.111 worked just fine, but 5:30:11.111 reported the wrong pattern. This commit fixes that issue.

gr2m commented 8 years ago

Thanks @mgd134! Could you please fix the syntax issues? You can run the tests locally with npm test, you should see the errors then.

mgd134 commented 8 years ago

Oops sorry about that. I was just running the tape test directly. Should be fixed now.

mgd134 commented 8 years ago

Yeah you're right. I fixed it in another commit. Sorry copy/paste error.

gr2m commented 8 years ago

merged via dae91e6 & e376322. I’ve re-worded your commits, because I use semantic-release for release automation which requires certain commit message conventions

Thanks, great work :+1: