diff options
author | Julian Offenhäuser <offenhaeuser@protonmail.com> | 2022-08-25 10:30:38 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-16 17:44:54 +0200 |
commit | 7ecd420b03485b814fd0d41ac50550f816f7c960 (patch) | |
tree | 3b92f291dd0d8584f034a4f28f50dd903c0a4605 /Userland/Libraries/LibPDF | |
parent | 67d0f5686dc743cf6bbf11b4c61e566b5c3da3c3 (diff) | |
download | serenity-7ecd420b03485b814fd0d41ac50550f816f7c960.zip |
LibPDF: Parse floating point numbers that omit a leading zero correctly
Diffstat (limited to 'Userland/Libraries/LibPDF')
-rw-r--r-- | Userland/Libraries/LibPDF/Reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibPDF/Reader.cpp b/Userland/Libraries/LibPDF/Reader.cpp index 27ec852510..58421812f9 100644 --- a/Userland/Libraries/LibPDF/Reader.cpp +++ b/Userland/Libraries/LibPDF/Reader.cpp @@ -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 |