Skip to content

Commit

Permalink
Reto mouredev#28 - javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
nlarrea committed Jul 12, 2023
1 parent 9459af4 commit 393e656
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ function checkExpression(expression) {

for (let element of expressionArray) {
// if two operators together (no space between them) -> NOK
console.log(element);
if (element.length > 1 && !/^\d+$/.test(element)) {
console.log('This expression has more than one operator without spacing.');
return false;
Expand Down

0 comments on commit 393e656

Please sign in to comment.