Skip to content
Snippets Groups Projects
Commit 4ffd00b3 authored by Stian Andersen Negård's avatar Stian Andersen Negård
Browse files

Fixxx

parent e4a23416
No related branches found
No related tags found
No related merge requests found
Pipeline #72212 passed
......@@ -42,7 +42,9 @@ public class CalculatorResource {
else if(expressionTrimmed.matches("^\\d+(?:\\s*[*]\\s*\\d+)*$")) result = multiplication(expressionTrimmed);
else if(expressionTrimmed.matches("^\\d+(?:\\s*[/]\\s*\\d+)*$")) result = division(expressionTrimmed);
if(result == -1) result == 69
if(result == -1){
result == 69
}
return result
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment