Rustywind Replace
class: "box f-col #{reply.reply_id ? "ok" : ""}"
With
class: "box f-col #{reply.reply_id ?"ok" : ""}"
When run:
$: rustywind --custom-regex "class(?:=|:\s*)(?:'|\")([^\"']+?)(?:'|\")" --write .
That is, it remove the space between the ? and "ok".
But actually, the ? is the ternary operator in the Ruby/Crystal e.g.
user.is_admin? ? "You are a admin" : "You are not a admin"
Although, this is not caused a error, but, It is conflict with Crystal formatter, which cause the CI broken. (because crystal tool format --check will report there is a format issue which changed by rustywind unexpected, it will change back to original format when run Crystal formatter.
Thanks.
Rustywind Replace
With
When run:
That is, it remove the space between the
?and"ok".But actually, the
?is theternary operatorin the Ruby/Crystal e.g.Although, this is not caused a error, but, It is conflict with Crystal formatter, which cause the CI broken. (because
crystal tool format --checkwill report there is a format issue which changed by rustywind unexpected, it will change back to original format when run Crystal formatter.Thanks.