Skip to content

Commit 990d9dd

Browse files
Merge branch 'deploystackio:main' into puken-dagobert-patch-13
2 parents ac5aef7 + 89807f6 commit 990d9dd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/scripts/validators/dockerImageTag.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ function validateDockerImageTag(fileContent, filePath) {
1616
// Extract the Docker run command
1717
const dockerRunCmd = dockerRunMatch[1].trim();
1818

19+
// Preprocess the command to handle line continuations (\ followed by newline)
20+
const processedCmd = dockerRunCmd.replace(/\\\n\s*/g, ' ');
21+
1922
// Tokenize the command properly
20-
const tokens = tokenizeCommand(dockerRunCmd);
23+
const tokens = tokenizeCommand(processedCmd);
2124

2225
// Find the image index in the command
2326
const imageIndex = findImageIndex(tokens);

0 commit comments

Comments
 (0)