Skip to content

Commit 13a7844

Browse files
authored
Merge pull request #19 from nats-io/replace-vs-replace-all
Use String.replace instead of String.replaceAll
2 parents fc3f112 + 76002b5 commit 13a7844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/nats/json/JsonWriteUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static StringBuilder beginFormattedJson() {
7575
public static String endFormattedJson(StringBuilder sb) {
7676
sb.setLength(sb.length()-1);
7777
sb.append("\n}");
78-
return sb.toString().replaceAll(",", ",\n ");
78+
return sb.toString().replace(",", ",\n ");
7979
}
8080

8181
/**

0 commit comments

Comments
 (0)