Skip to content

Commit

Permalink
Improve regex
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Jan 7, 2024
1 parent 45cae3d commit 9382c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mpo/dayon/common/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static Map<String, String> parsePresetFileContent(File presetFile) {
static String parseValue(String[] s) {
StringBuilder sb = new StringBuilder();
for (int i = 1; i < s.length; i++) {
sb.append(s[i].trim().replaceAll("(^[\"']|[\"']$)", "")).append(":");
sb.append(s[i].trim().replaceAll("(^[\"'])|([\"']$)", "")).append(":");
}
return sb.deleteCharAt(sb.length()-1).toString();
}
Expand Down

0 comments on commit 9382c87

Please sign in to comment.