Skip to content

Commit

Permalink
Wrap asterisk in quotes in recipe list options
Browse files Browse the repository at this point in the history
  • Loading branch information
jtymes committed Feb 14, 2025
1 parent 0d6fc98 commit bd16feb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ fun OptionDescriptor.asYaml(indentation: Int = 0): String {
val formattedValue = if (value is Array<*>) {
val asArray = value as Array<*>
"[${asArray.joinToString(", ")}]"
} else if (value == "*") {
"\"*\""
} else {
value
}
Expand Down

0 comments on commit bd16feb

Please sign in to comment.