fix regex bug (#170)

This commit is contained in:
Oliver King
2022-02-09 17:08:07 -05:00
committed by GitHub
parent 4810ff9a3e
commit 961b316a51
+1 -1
View File
@@ -119,7 +119,7 @@ export function substituteImageNameInSpecFile(
if (spec.indexOf(imageName) < 0) return spec;
return spec.split("\n").reduce((acc, line) => {
const imageKeyword = line.match(/^ *image:/);
const imageKeyword = line.match(/^ *-? *image:/);
if (imageKeyword) {
let [currentImageName] = line
.substring(imageKeyword[0].length) // consume the line from keyword onwards