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