Commit f1ab75e
CI Bot
fix: use NaN check instead of || for history limit parsing
parseInt('0') || 50 evaluates to 50 because 0 is falsy. Use
Number.isNaN to correctly distinguish missing/invalid input from
an explicit zero (which gets clamped to 1 by Math.max).1 parent 806784b commit f1ab75e
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| |||
0 commit comments