Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
simosathan9 committed Oct 10, 2024
1 parent bb3fbf2 commit 4074225
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/blocks/sedBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var sedBlock = {
tooltip: '%{BKY_SED_TOOLTIP}',
helpUrl: '%{BKY_SED_HELPURL}', // URL to further information or documentation.
generateCommand: function (block) {
let sedCommand = handleBlockByType(block); // Basic sed command
let sedCommand;

// Handle pattern and replacement
let patternBlock = block.getInputTargetBlock('regPattern');
Expand Down
7 changes: 4 additions & 3 deletions public/js/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ function handleBuiltInBlocks(currentBlock) {
MULTIPLY: '*',
DIVIDE: '/',
POWER: '^',
AND: '&&', // Logical AND
OR: '||', // Logical OR
NOT: '!' // Logical NOT
AND: '&&',
OR: '||',
NOT: '!'
};
return operators[operatorField];
};
Expand Down Expand Up @@ -403,6 +403,7 @@ function handleBlockByType(currentBlock) {
'math_number',
'math_arithmetic',
'logic_compare',
'logic_operation',
'controls_if'
];

Expand Down

0 comments on commit 4074225

Please sign in to comment.