| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
In _parse_numeric_token, extend the terminal-token branch to treat a ':' following a number as terminal too, so 4-digit years such as '2016:' are kept as year tokens instead of being dropped. When the token is followed by ':', return before consuming it so fuzzy mode reports the colon among the skipped tokens. Fixes dateutil#326
| Back | FazBrowse Home | New Git URL |
Summary
With fuzzy=True, a 4-digit year immediately followed by : was dropped entirely, so parse("23. November 2016:", fuzzy=True) returned the default year (2026) instead of 2016.
Root cause: in _parse_numeric_token, the terminal-token branch (idx + 1 >= len_l or info.jump(...) — "year, month or day") never matched when the next token was :, so the number fell through to the fuzzy skip path and the year was lost.
Changes
Tests