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 can and regex functions #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nadav-y
Copy link
Contributor

@nadav-y nadav-y commented Jan 8, 2025

based on #88 (comment)
Adding "can" (https://developer.hashicorp.com/terraform/language/functions/can) function, similar to try but returns bool

Adding "regex" (https://developer.hashicorp.com/terraform/language/functions/regex) similar to regexall, but return first found instead of a list of results

@nadav-y
Copy link
Contributor Author

nadav-y commented Jan 8, 2025

I've changed the implementation of can based on the examples provided

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.

1 participant