Usenet
Usenet copied to clipboard
Simplify header date time string parsing by using a regular expression
On a news server I user, I ran into some more odd-ball formats for header date time fields. So, I rewrote the parsing logic to use a regular expression rather than all the special-case logic that was there. All related tests succeed.
Are you still alive? I submitted this PR 4 years ago but still haven't had this PR taken, or even reviewed, as far as I know.
@JohnTasler I happened to be in need of a usenet library as well and decided to fork and revive the source code a bit at https://github.com/Spottarr/Usenet. I have cherry picked this PR there: https://github.com/Spottarr/Usenet/pull/28