mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-24 04:28:03 +01:00
twenyone
This commit is contained in:
parent
00e8afb72e
commit
84057e8649
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue