Repository navigation
Determines date using a sliding window - #3
guillaumegarcia13 wants to merge 1 commit into
Conversation
To prevent a Y2K51-bug, date computation has been modified with a sliding window
|
@guillaumegarcia13 — your fork has moved a good way ahead of this one and I would rather merge it than reimplement it. Comparing
I ran this fork's suite against your parser: 203 specs, no failures, and nothing regressed — Would you open a PR with your For context on what is here now: #6 adds a spec that parses every supported identifier and checks each one comes back under its own AI, plus CI and npm publishing. Your additions would slot straight into that — the new |
|
@guillaumegarcia13 — rather than leave this waiting, I went ahead and added the identifier block myself: #9 takes the fork from 193 to 205 with One thing I did differently, because it looked like a bug worth not copying. parseDate("7250", "DOB");but The first six digits are taken as a two digit date, the sliding window then does what it does with month 85, and the leftover So #9 adds a The rest of your fork is still ahead of this one in the direction that matters — the GS1 JSON-LD extraction is a better answer to element validation than anything here, and none of that is in #9. If you do open a PR for it, it is welcome. For context on what landed meanwhile: 1.0.8 shipped the |
To prevent a Y2K51-bug, date computation has been modified with a sliding window