Skip to content

Commit

Permalink
fix: Make semicolons optional for middle position steps of level 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jschanker authored Jan 13, 2025
1 parent d1736f3 commit 6c75d62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions csc1030/3.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ Blockly.Blocks['type_in_set_to_position_of_second_middle_char'] = {
if(this.getFieldValue("EXP").endsWith("\r") ||
this.getFieldValue("EXP").endsWith("\n") || (this.getFieldValue("EXP").length > 0 && e.element === "workspaceClick")) {
if(!this.validate(this.getFieldValue("EXP")) ||
(!this.getFieldValue("EXP").endsWith(")") &&
(!this.getFieldValue("EXP").endsWith("2") &&
!this.getFieldValue("EXP").endsWith(";"))) return;
else {
const parseTree = getParseTree(this.getFieldValue("EXP"));
Expand Down Expand Up @@ -617,7 +617,7 @@ Blockly.Blocks['type_in_set_to_position_of_first_middle_char'] = {
if(this.getFieldValue("EXP").endsWith("\r") ||
this.getFieldValue("EXP").endsWith("\n") || (this.getFieldValue("EXP").length > 0 && e.element === "workspaceClick")) {
if(!this.validate(this.getFieldValue("EXP")) ||
(!this.getFieldValue("EXP").endsWith(")") &&
(!this.getFieldValue("EXP").endsWith("1") &&
!this.getFieldValue("EXP").endsWith(";"))) return;
else {
const parseTree = getParseTree(this.getFieldValue("EXP"));
Expand Down Expand Up @@ -1772,4 +1772,4 @@ export const loadLevelTasks = (courseInstructionTaskFlow, ws) => {
return citf;
};
// citf.runTasks();
// });
// });

0 comments on commit 6c75d62

Please sign in to comment.