Skip to content

Commit 9594ca5

Browse files
committed
fix(parser): quote injected gclDescription values
A description containing a colon was spliced in unquoted and produced invalid YAML.
1 parent 7b732a5 commit 9594ca5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export class Parser {
321321
index++;
322322
}
323323
if (descriptionMatch) {
324-
fileSplitClone.splice(index + 1, 0, ` gclDescription: ${descriptionMatch?.groups?.description ?? ""}`);
324+
fileSplitClone.splice(index + 1, 0, ` gclDescription: ${JSON.stringify(descriptionMatch?.groups?.description ?? "")}`);
325325
index++;
326326
}
327327
interactiveMatch = null;

0 commit comments

Comments
 (0)