Skip to content

Commit

Permalink
fix YAML save name value pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
nxi committed Sep 18, 2024
1 parent e8e6e7b commit b0391cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public static void saveConfigModel(String instrumentId, String text, String mess
throw new JSONException("model can not be empty");
}
File file = new File(getYamlFilePath(instrumentId));
String[] pair = text.split("&", 3);
String[] pair = text.split("&", 2);
String path = pair[0].substring(pair[0].indexOf("=") + 1).trim();
// String idx = pair[1].substring(pair[1].indexOf("=") + 1).trim();
String modelString = pair[1].substring(pair[1].indexOf("=") + 1).trim();
Expand Down

0 comments on commit b0391cf

Please sign in to comment.