Usenet icon indicating copy to clipboard operation
Usenet copied to clipboard

Simplify header date time string parsing by using a regular expression

Open JohnTasler opened this issue 4 years ago • 1 comments

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.

JohnTasler avatar Nov 17 '21 01:11 JohnTasler

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 avatar Feb 27 '25 11:02 JohnTasler

@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

christiaanderidder avatar Apr 21 '25 13:04 christiaanderidder