Fix digit group validation bug in Rust number parsing
authorJakob Cornell <jakob+gpg@jcornell.net>
Sun, 1 Oct 2023 18:45:15 +0000 (13:45 -0500)
committerJakob Cornell <jakob+gpg@jcornell.net>
Sun, 1 Oct 2023 18:45:15 +0000 (13:45 -0500)
sharedmodel/src/update_parse.rs

index ed05cea08b099a2d5999ce324fff44c1ecb70c46..728c01fb0b29b6b709f68cee3a75702130a6930b 100644 (file)
@@ -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;
                                        }
                                }