Skip to content

Commit

Permalink
refactor: Operator wrapping on end of line
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek and TeamModerne committed Sep 21, 2024
1 parent 0f7905b commit 9c02525
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1213,9 +1213,9 @@ class RecipeMarkdownGenerator : Runnable {
if (!option.isRequired && option.example == null) {
continue
}
val ex = if (option.example != null && "String" == option.type
&& (option.example.matches("^[{}\\[\\],`|=%@*!?-].*".toRegex())
|| option.example.matches(".*:\\s.*".toRegex()))
val ex = if (option.example != null && "String" == option.type &&
(option.example.matches("^[{}\\[\\],`|=%@*!?-].*".toRegex()) ||
option.example.matches(".*:\\s.*".toRegex()))
) {
"'" + option.example + "'"
} else if (option.type == "boolean") {
Expand Down

0 comments on commit 9c02525

Please sign in to comment.