LibPDF: Parse floating point numbers that omit a leading zero correctly

This commit is contained in:
Julian Offenhäuser 2022-08-25 10:30:38 +02:00 committed by Andreas Kling
parent 67d0f5686d
commit 7ecd420b03
Notes: sideshowbarker 2024-07-17 09:41:18 +09:00

View file

@ -24,7 +24,7 @@ bool Reader::matches_number() const
if (done())
return false;
auto ch = peek();
return isdigit(ch) || ch == '-' || ch == '+';
return isdigit(ch) || ch == '-' || ch == '+' || ch == '.';
}
bool Reader::matches_delimiter() const