Skip to content

Commit

Permalink
Automatic merge of master into galahad
Browse files Browse the repository at this point in the history
  • Loading branch information
OracleLabsAutomation committed Jul 31, 2024
2 parents b72e5e9 + cecd104 commit 93b333a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ private static String quoteString(String s) {
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
// Escaping rules according to https://www.ietf.org/rfc/rfc4627.txt section 2.5
if (c == '"' || c == '\\' || c == '/') {
// except for '/' because it is unnecessarily verbose.
if (c == '"' || c == '\\') {
escapeSequence(sb, c);
} else if (c == '\b') {
escapeSequence(sb, 'b');
Expand Down

0 comments on commit 93b333a

Please sign in to comment.