Closed Guest0x0 closed 2 months ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Currently,
Show::to_string
instance forString
returns the string itself. Escaping functionality ofString
is implemented inShow::output
, butShow::output
is not intended for direct use. This PR adds aString::escape
method, which returns a valid MoonBit syntax representation of a string.While testing the API I fix a small bug in
Show::output
implementation forString
. It fail to escape some non-printable characters.