mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 02:47:52 +01:00
Allow returning literal Infinity string from math operations
This commit is contained in:
parent
bed7df0038
commit
3fd846fb5b
@ -709,7 +709,7 @@ function performOperation(value, operation, singleOperand = false, scope = null)
|
||||
|
||||
const result = singleOperand ? operation(array[0]) : operation(array);
|
||||
|
||||
if (isNaN(result) || !isFinite(result)) {
|
||||
if (isNaN(result)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user