Skip to content

Commit

Permalink
compensate for additional type of yaml anchor bork
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 14, 2021
1 parent a3b9468 commit b00a118
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -93,7 +93,7 @@ else if (endsColon && !startsDash) {
curLine = curLine.replace("&", "&amp").replace(".", "&dot");
}
}
else if (!startsDash && trimmedLine.contains(": &")) {
else if (!startsDash && (trimmedLine.contains(": &") || trimmedLine.contains(": *"))) {
int colon = curLine.indexOf(':');
curLine = curLine.substring(0, colon) + ": \"" + curLine.substring(colon + 2).replace("\"", "<&dq>") + "\"";
}
Expand Down

0 comments on commit b00a118

Please sign in to comment.