mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +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}"`);
|
newLine = lineToChange.replace(/\?ref=.*"/, `?ref=${upgrade.newValue}"`);
|
||||||
} else if (upgrade.depType === 'terraform') {
|
} else if (upgrade.depType === 'terraform') {
|
||||||
if (!lineToChange.includes('version = "')) {
|
if (!lineToChange.match(/version\s*=\s*"/)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
newLine = lineToChange.replace(
|
newLine = lineToChange.replace(
|
||||||
|
|
Loading…
Reference in a new issue