From: Jakob Cornell Date: Sun, 1 Oct 2023 18:45:15 +0000 (-0500) Subject: Fix digit group validation bug in Rust number parsing X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=4f29b2b9df85e034ba45737f29cf6e86e5416ff9;p=counting.git Fix digit group validation bug in Rust number parsing --- diff --git a/sharedmodel/src/update_parse.rs b/sharedmodel/src/update_parse.rs index ed05cea..728c01f 100644 --- a/sharedmodel/src/update_parse.rs +++ b/sharedmodel/src/update_parse.rs @@ -262,6 +262,9 @@ fn parse_from_lines(lines: &[impl Borrow], curr_count: Option, bot_u } lone = lone && use_parts.len() == parts.len(); + + // Validated by regex as only ASCII digits, leading zeros stripped. + groups_okay = true; } }