Skip to content

Commit 53faa91

Browse files
committed
We must escape & too
We should depend on Foundation and parse JSON when Linux Foundation has that.
1 parent 4a77d91 commit 53faa91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Build/YAML.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extension Array where Element: YAMLRepresentable {
3030
var YAML: String {
3131
func quote(input: String) -> String {
3232
for c in input.characters {
33-
if c == "@" || c == " " || c == "-" {
33+
if c == "@" || c == " " || c == "-" || c == "&" {
3434
return "\"\(input)\""
3535
}
3636
}

0 commit comments

Comments
 (0)