mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
fix(terraform): handle whitespace better in replace
This commit is contained in:
parent
f71ee0ef9f
commit
148126859d
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ function updateDependency(currentFileContent, upgrade) {
|
|||
}
|
||||
newLine = lineToChange.replace(/\?ref=.*"/, `?ref=${upgrade.newValue}"`);
|
||||
} else if (upgrade.depType === 'terraform') {
|
||||
if (!lineToChange.includes('version = "')) {
|
||||
if (!lineToChange.match(/version\s*=\s*"/)) {
|
||||
return null;
|
||||
}
|
||||
newLine = lineToChange.replace(
|
||||
|
|
|
@ -7,8 +7,8 @@ module "bar" {
|
|||
}
|
||||
|
||||
module "consul" {
|
||||
source = "hashicorp/consul/aws"
|
||||
version = "0.1.0"
|
||||
source = "hashicorp/consul/aws"
|
||||
version = "0.1.0"
|
||||
}
|
||||
|
||||
module "container_definition" {
|
||||
|
|
Loading…
Reference in a new issue