From 4f29b2b9df85e034ba45737f29cf6e86e5416ff9 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sun, 1 Oct 2023 13:45:15 -0500 Subject: [PATCH] Fix digit group validation bug in Rust number parsing --- sharedmodel/src/update_parse.rs | 3 +++ 1 file changed, 3 insertions(+) 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; } } -- 2.30.2