Commit 36486b2
committed
fix: reject fractional page numbers in PDF tool page range parser
parsePageRange used Number(part) which accepts fractional values like
"1.5". The document-extract fallback later filters non-integer pages
with Number.isInteger, silently dropping them and producing empty
extraction results. Add Number.isInteger check at parse time to reject
fractional input with a clear error.
Closes #993931 parent e272da5 commit 36486b2
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments