We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4568c5d commit fcd3ba3Copy full SHA for fcd3ba3
src/storage/filters/jsonQuery.ts
@@ -349,7 +349,7 @@ const operatorIndependentCheck = (
349
};
350
351
const regExBigInt = /^[+-]?\d+$/;
352
-const regExDouble = /^[+-]?\d+$/;
+const regExDouble = /^(-?)(0|([1-9][0-9]*))(\\.[0-9]+)?$/;
353
const regExDateTimeRFC3339Nano =
354
/* eslint-disable-next-line */
355
/^([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