Skip to content

Commit

Permalink
ISO characters already handled
Browse files Browse the repository at this point in the history
  • Loading branch information
JPercival committed Dec 13, 2024
1 parent b196833 commit 9d7bc25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ object StringEscapeUtils {
// default to Unicode for non-printable characters
// '\u0020'..'\u007E' are printable ASCII characters
ESCAPE_MAP[char]
?: if (char.isISOControl() || char !in '\u0020'..'\u007E') {
?: if (char !in '\u0020'..'\u007E') {
"\\u%04x".format(char.code)
} else {
char
Expand Down

0 comments on commit 9d7bc25

Please sign in to comment.