-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add case-insensitive regex support #195
Conversation
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
@@ -18,7 +18,7 @@ | |||
"name": "HTTP GET", | |||
"http": { | |||
"request": { | |||
"url": "https://aws.amazon.com/", | |||
"url": "https://aws\\.amazon\\.com/", |
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.
you might need to change all the trace templates?
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.
Ah I missed all the ones nested in packages. Good catch!
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.
Also FWIW, even if a period wasn't escaped like this (for example in the interpolated endpoint
variable), it wouldn't break validation. Because the unescaped period matches any character, including a literal period, so the correct endpoint would still be considered a match. But of course it's still better to escape them and match it exactly where we can.
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.
gotcha!
@@ -18,7 +18,7 @@ | |||
"name": "HTTP GET", | |||
"http": { | |||
"request": { | |||
"url": "https://aws.amazon.com/", | |||
"url": "https://aws\\.amazon\\.com/", |
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.
gotcha!
Copy of #192, this time with case-insensitive comparisons. Tested with values that had mismatched case this time. Also added
UnusedImports
to checkstyle.