mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibPDF: Parse floating point numbers that omit a leading zero correctly
This commit is contained in:
parent
67d0f5686d
commit
7ecd420b03
Notes:
sideshowbarker
2024-07-17 09:41:18 +09:00
Author: https://github.com/janso3 🔰 Commit: https://github.com/SerenityOS/serenity/commit/7ecd420b03 Pull-request: https://github.com/SerenityOS/serenity/pull/15270 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/mattco98
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue