Skip to content

Commit

Permalink
exclude long numeric IDs from id sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Sep 11, 2024
1 parent 1102073 commit b848933
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 02_assign_ids/grebi_extract_identifiers/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ fn main() {
}

fn check_id(k:&[u8], id:&[u8]) {
if id.len() >= 16 {
// long numeric ID is prob a UUID and fine
return;
}
let mut has_non_numeric = false;
for c in id {
if !c.is_ascii_digit() {
Expand Down

0 comments on commit b848933

Please sign in to comment.