Skip to content

Commit c5a1593

Browse files
committed
CI: improve regex match for variables
1 parent df82a2b commit c5a1593

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ submodule.sh
77

88
.terraform
99
.terraform.lock.hcl
10+
.terraform.tfstate.lock.info
1011
*.tmp
1112
go.sum
1213

scripts/import_tfer_check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func excuteTferTest() {
307307

308308
var (
309309
providerRegexPattern = `provider "alicloud" {\s*[^}]*}`
310-
variableRegexPattern = `variable ".*?" {\s*.*?\s*}`
310+
variableRegexPattern = `variable\s+"(\w+)"\s*{[^}]*}`
311311

312312
stateFilePath = ""
313313

0 commit comments

Comments
 (0)