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

Fix panic parsing regular expressions #3907

Merged
merged 1 commit into from
Apr 4, 2017
Merged

Conversation

urso
Copy link

@urso urso commented Apr 4, 2017

  • Fix parsing regular expression matching patterns for log lines starting with
    a date, by taking an optional literal string/character suffix into account
    (panic with index out of error, due to expecting a digit-pattern)
  • add more test cases for regression
  • add support to flatten nested repetitions like (\d{2}){2} into \d{4}, so
    more date-like patterns can be captured. This adds support for capturing
    \d\d\d\d as simplified \d{4} pattern.

(cherry picked from commit 4808f1c)

- Fix parsing regular expression matching patterns for log lines starting with
  a date, by taking an optional literal string/character suffix into account
  (panic with index out of error, due to expecting a digit-pattern)
- add more test cases for regression
- add support to flatten nested repetitions like `(\d{2}){2}` into `\d{4}`, so
  more date-like patterns can be captured. This adds support for capturing
  `\d\d\d\d` as simplified `\d{4}` pattern.

(cherry picked from commit 4808f1c)
@tsg tsg merged commit 4d910c5 into elastic:5.3 Apr 4, 2017
@urso urso deleted the backport_3897_5.3 branch February 19, 2019 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants