Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
josephclawrence committed Sep 30, 2024
1 parent 3d4acbb commit 4d2a347
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion syspro/proto/codeconvert.html
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,14 @@
notes = responseString.substring(responseString.indexOf("### Explanation:") + 16);
} else if (responseString.includes("### Explanations:")) {
notes = responseString.substring(responseString.indexOf("### Explanations:") + 17);
} else if (responseString.includes("### Key Points:")) {
notes = responseString.substring(responseString.indexOf("### Key Points:") + 15);
} else {
notes = responseString.substring(responseString.indexOf("```", responseString.indexOf("```csharp") + 9)).replace('```', '');
}
console.log(code);
cseditor.setValue(code);
$("#conversion-notes pre").html(notes);
$("#conversion-notes pre").html(notes.trim());
button.find(".spinner-border").hide();
button.find(".convert-icon").show();
button.attr("disabled", false);
Expand Down

0 comments on commit 4d2a347

Please sign in to comment.