We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d220224 + ed59971 commit 3b25fc7Copy full SHA for 3b25fc7
src/test/java/de/marhali/json5/TestJson5.java
@@ -45,7 +45,10 @@ private String getTestResourceContent(String fileName) throws IOException {
45
buf.write((byte) result);
46
}
47
48
- return buf.toString(StandardCharsets.UTF_8);
+ return Optional.ofNullable(buf.toString(StandardCharsets.UTF_8))
49
+ .map(s->s.replace("\r\n","\n"))
50
+ .map(s->s.replace("\r","\n"))
51
+ .orElse(null);
52
53
54
0 commit comments