1
Fork 0
This commit is contained in:
ashley 2024-08-05 10:39:25 +00:00
parent 00e8afb72e
commit 84057e8649

View file

@ -516,6 +516,11 @@ function isMathExpression(query) {
}
function evaluateMathExpression(expression) {
// twenyone
if (expression.replace(/\s+/g, '') === '9+10') {
return '21';
}
try {
return eval(expression);
} catch (error) {