mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2026-06-16 13:27:45 +02:00
Adjust the regex used to detect ${ENV_VAR} patterns in
hooks/_common.sh to avoid Bash-incompatible constructs and to be
compatible with macOS/BSD regex behavior.
- Remove unnecessary leading/trailing '.*' since =~ matches substrings.
- Allow lowercase letters in subsequent identifier characters
([A-Za-z0-9_]) so variable names with lowercase chars are detected.
- Keep first-char restriction to uppercase or underscore to match
existing extraction logic.
Signed-off-by: Michael Rosenfeld <mrosenfe@sheetz.com>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _common.sh | ||
| infracost_breakdown.sh | ||
| terragrunt_fmt.sh | ||
| terragrunt_validate.sh | ||
| terragrunt_validate_inputs.sh | ||
| terrascan.sh | ||
| tfupdate.sh | ||
| tofu_checkov.sh | ||
| tofu_docs.sh | ||
| tofu_docs_replace.py | ||
| tofu_fmt.sh | ||
| tofu_providers_lock.sh | ||
| tofu_tflint.sh | ||
| tofu_tfsec.sh | ||
| tofu_trivy.sh | ||
| tofu_validate.sh | ||
| tofu_wrapper_module_for_each.sh | ||