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

ch: refactor hack to use regex in terraform #1946

Merged
merged 2 commits into from
Dec 18, 2023
Merged

Conversation

acedeywin
Copy link
Contributor

Primary reviewer:

Description

  • This PR updates the hack that replaces the number "2" with no space to use regex.

Checklist

  • Corresponding issue has been opened
  • New tests added
  • Feature flags added
  • Strings are localized
  • Tested for chat contacts
  • Tested for call contacts

Related Issues

Fixes #....

Verification steps


name = replace("${local.name_prefix}_${each.key}", "2", "")
name = replace("${local.name_prefix}_${each.key}", "[0-9]", "")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that [0-9] needs to be wrapped in forward slashes to be treated like a regex.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@robert-bo-davis - I have added the forward slash

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would just go ahead and merge this, @robert-bo-davis isn't around to approve PRs anywhere near as promptly as he used to be :-)

@acedeywin acedeywin merged commit 681ffdf into master Dec 18, 2023
8 checks passed
@acedeywin acedeywin deleted the bg-fix-issue-with-e2e branch December 18, 2023 16:57
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