Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
windows filesystem is case-insensitive. This fixes running tests when using VSCode test-runner on Windows.
  • Loading branch information
Almenon committed Jan 21, 2024
1 parent 235fdbe commit 8f3d6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func getDependencies(path string, terragruntOptions *options.TerragruntOptions)
}

// Check if the path begins with a drive letter, denoting Windows
isWindowsPath, err := regexp.MatchString(`^[A-Z]:`, parsedSource)
isWindowsPath, err := regexp.MatchString(`^[A-Za-z]:`, parsedSource)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 8f3d6f2

Please sign in to comment.