Skip to content

Commit

Permalink
Fixed escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauriichan committed Apr 26, 2021
1 parent 2f9c8a9 commit b3f0950
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,10 @@ private void writeStringObject(String string, Writer writer) throws IOException
char character = array[index];
if (character < 128) {
String escaped = ESCAPE_CHARS[character];
if (escaped == null) {
if (escaped != null) {
builder.append(escaped);
continue;
}
builder.append(escaped);
continue;
}
if (character == '\u2028') {
builder.append("\\u2028");
Expand Down

0 comments on commit b3f0950

Please sign in to comment.