Skip to content

Commit

Permalink
Merge pull request #6424 from pkriens/issue/json-codec-skips-whitespa…
Browse files Browse the repository at this point in the history
…ce-in-strings

Whitespace after the quote character is skipped
  • Loading branch information
pkriens authored Jan 9, 2025
2 parents 8a05afc + 3ce5ded commit d4d9375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aQute.libg/src/aQute/lib/json/JSONCodec.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ protected String parseString(Decoder r) throws Exception {
char quote = (char) r.current();
assert r.current() == '"' || (promiscuous && r.current == '\'');

int c = r.next(); // skip first "
int c = r.read(); // skip first "

StringBuilder sb = new StringBuilder();
while (c != quote) {
Expand Down

0 comments on commit d4d9375

Please sign in to comment.