diff --git a/src/Terminal/commands/expr.ts b/src/Terminal/commands/expr.ts index 7791b4563..5645431e3 100644 --- a/src/Terminal/commands/expr.ts +++ b/src/Terminal/commands/expr.ts @@ -17,7 +17,7 @@ export function expr( const expr = args.join(""); // Sanitize the math expression - const sanitizedExpr = expr.replace(/s+/g, "").replace(/[^-()\d*/+.\%]/g, ""); + const sanitizedExpr = expr.replace(/s+/g, "").replace(/[^-()\d/*+.%]/g, ""); let result; try { result = eval(sanitizedExpr);