Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #24 #30

Merged
merged 4 commits into from
Nov 9, 2022
Merged

Fixes #24 #30

merged 4 commits into from
Nov 9, 2022

Conversation

alfonso46674
Copy link
Contributor

This PR gives support and tests the following formats:
[DD/MM/YY hh:mm:ss] user:message
DD/MM/YYYY hh:mm:ss a.m./p.m. - user:message
DD.MM.YYYY hh:mm a.m./p.m. - user:message

Modified regex to match dates with 4-digit years:
1/1/1999
12/12/1999
10/1/1999
1/10/1999

Modified the target.json and testlog.txt to test these dates and certain time formats as p.m./a.m.
1. Check if the first character of the line is" [ ". If it is, then remove it and replace the next " ] " appearance for a dash to help _parse_message differ between the datetime and the message
@alfonso46674
Copy link
Contributor Author

Added support for DD-MM-YY in the latest commit and refactored the format logic

@joweich joweich merged commit dc321db into joweich:main Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants