1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

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

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