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

Add case-insensitive regex support #195

Merged
merged 2 commits into from
Dec 10, 2020

Conversation

willarmiros
Copy link
Contributor

@willarmiros willarmiros commented Dec 10, 2020

Copy of #192, this time with case-insensitive comparisons. Tested with values that had mismatched case this time. Also added UnusedImports to checkstyle.

Copy link
Contributor

@bhautikpip bhautikpip left a 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/",
Copy link
Contributor

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?

Copy link
Contributor Author

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!

Copy link
Contributor Author

@willarmiros willarmiros Dec 10, 2020

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.

Copy link
Contributor

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/",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha!

@wyTrivail wyTrivail merged commit de97473 into aws-observability:terraform Dec 10, 2020
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