Skip to content

Commit fcd3ba3

Browse files
committed
fix for double
1 parent 4568c5d commit fcd3ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/storage/filters/jsonQuery.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ const operatorIndependentCheck = (
349349
};
350350

351351
const regExBigInt = /^[+-]?\d+$/;
352-
const regExDouble = /^[+-]?\d+$/;
352+
const regExDouble = /^(-?)(0|([1-9][0-9]*))(\\.[0-9]+)?$/;
353353
const regExDateTimeRFC3339Nano =
354354
/* eslint-disable-next-line */
355355
/^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(([Zz])|([\+|\-]([01][0-9]|2[0-3]):[0-5][0-9]))$/;

0 commit comments

Comments
 (0)