mirror of
https://github.com/jezhiggins/arabica
synced 2024-12-27 21:58:30 +01:00
added test for NaN in SubstringFn
This commit is contained in:
parent
5b8fa13481
commit
adbe375297
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ public:
|
|||
double startAt = roundNumber(argAsNumber(1, context, executionContext)) - 1;
|
||||
double endAt = roundNumber((argCount() == 3 ? argAsNumber(2, context, executionContext) : Infinity)) + startAt;
|
||||
|
||||
if((endAt < 0) || (endAt < startAt))
|
||||
if((endAt < 0) || (endAt < startAt) || (isNaN(endAt)))
|
||||
return new StringValue("");
|
||||
|
||||
if(startAt < 0)
|
||||
|
|
Loading…
Reference in a new issue