diff --git a/src/plays/calculator-by-tea/useCalcalulatorByTeaHook.ts b/src/plays/calculator-by-tea/useCalcalulatorByTeaHook.ts index 0f3aef3314..0cdb016a87 100644 --- a/src/plays/calculator-by-tea/useCalcalulatorByTeaHook.ts +++ b/src/plays/calculator-by-tea/useCalcalulatorByTeaHook.ts @@ -59,7 +59,7 @@ const useCalcalulatorByTeaHook = () => { } function onInputRecived(expression: string) { - if (expression.match(/^(?:[0-9]+[-+*/]?)*[0-9]*$/)) { + if (expression.match(/^(?:[0-9]+[-+*/])*[0-9]*$/)) { setCalculationExpression(expression); } }