Site
Gitweb
Static
projects
/
counting.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3d6677
)
Fix digit group validation bug in Rust number parsing
author
Jakob Cornell
<jakob+gpg@jcornell.net>
Sun, 1 Oct 2023 18:45:15 +0000
(13:45 -0500)
committer
Jakob Cornell
<jakob+gpg@jcornell.net>
Sun, 1 Oct 2023 18:45:15 +0000
(13:45 -0500)
sharedmodel/src/update_parse.rs
patch
|
blob
|
history
diff --git
a/sharedmodel/src/update_parse.rs
b/sharedmodel/src/update_parse.rs
index ed05cea08b099a2d5999ce324fff44c1ecb70c46..728c01fb0b29b6b709f68cee3a75702130a6930b 100644
(file)
--- a/
sharedmodel/src/update_parse.rs
+++ b/
sharedmodel/src/update_parse.rs
@@
-262,6
+262,9
@@
fn parse_from_lines(lines: &[impl Borrow<str>], curr_count: Option<Count>, bot_u
}
lone = lone && use_parts.len() == parts.len();
+
+ // Validated by regex as only ASCII digits, leading zeros stripped.
+ groups_okay = true;
}
}