summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF
diff options
context:
space:
mode:
authorJulian Offenhäuser <offenhaeuser@protonmail.com>2022-08-25 10:30:38 +0200
committerAndreas Kling <kling@serenityos.org>2022-10-16 17:44:54 +0200
commit7ecd420b03485b814fd0d41ac50550f816f7c960 (patch)
tree3b92f291dd0d8584f034a4f28f50dd903c0a4605 /Userland/Libraries/LibPDF
parent67d0f5686dc743cf6bbf11b4c61e566b5c3da3c3 (diff)
downloadserenity-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.cpp2
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