mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-14 14:57:28 +00:00
Ignore invalid feed discovery limits (#16)
This commit is contained in:
parent
9ed98ceaf7
commit
9942ef8dc6
2 changed files with 5 additions and 1 deletions
|
|
@ -331,7 +331,7 @@ function numberParam(value: string | null) {
|
|||
return undefined;
|
||||
}
|
||||
const parsed = Number(value);
|
||||
return Number.isFinite(parsed) ? parsed : undefined;
|
||||
return Number.isFinite(parsed) && parsed > 0 ? parsed : undefined;
|
||||
}
|
||||
|
||||
function listParam(value: string | null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue