Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
do not add escape char for inner quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-bilibili committed Feb 14, 2022
1 parent c3f3591 commit 01897e4
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,6 @@ private void saveUI() throws NullPointerException, JSONException {
String arg = oneOfArgs.toString();
if (arg.startsWith("\"") && arg.endsWith("\""))
arg = arg.substring(1, arg.length() - 1);
arg = arg.replaceAll(Matcher.quoteReplacement("\\\""), "\"");
arg = arg.replaceAll("\"", Matcher.quoteReplacement("\\\""));
// oneOrTwoArgs.put("\"" + arg + "\""); // adding quotes leads to crash
oneOrTwoArgs.put(arg);
}
Expand Down

0 comments on commit 01897e4

Please sign in to comment.