-
Notifications
You must be signed in to change notification settings - Fork 119
Improve regex for date and time in w3c formats #180
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
Conversation
I've tried this commit and receives the following after making the changes:
|
@dinasty02091994 Would you mind sharing a few lines of your log file? |
Sure no problems, here's a couple of lines from the log, please note the the #Date line will be matched as well so what i've done for testing purposes is deleting that line from the log.
|
thx. will check that later |
@dinasty02091994 the error is unrelated to that change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Perhaps a second log with flipped or otherwise disconnected date time combination (tested manually) could be added but that might already come with other log formats.
As this creates a new match group would it be worth checking for a relevant parsing time impact here? (would not expect that, but it is regex after all...)
Feedback:
Should be good to merge then |
I've added a simple test |
currently date and time needs to be directly behind each other, as otherwise the regex would break.
This change allows to have date and time somewhere in there field order, and also allows to have it wrapped in
"
.might help with #179