* fix api filter from matching event id as timestamp

* add padding on platform aware sheet for tablets

* docs tweaks

* tweaks
This commit is contained in:
Josh Hawkins
2024-11-05 08:22:41 -06:00
committed by GitHub
parent 1fc4af9c86
commit 29ea7c53f2
4 changed files with 35 additions and 23 deletions

View File

@@ -65,10 +65,14 @@ export function useApiFilterArgs<
const filter: { [key: string]: unknown } = {};
rawParams.forEach((value, key) => {
const isValidNumber = /^-?\d+(\.\d+)?(?!.)/.test(value);
const isValidEventID = /^\d+\.\d+-[a-zA-Z0-9]+$/.test(value);
if (
value != "true" &&
value != "false" &&
(/[^0-9,]/.test(value) || isNaN(parseFloat(value)))
!isValidNumber &&
!isValidEventID
) {
filter[key] = value.includes(",") ? value.split(",") : [value];
} else {