Commit 468fcf3
Fix UUID heuristic to correctly identify pure-hex strings
The previous check `not t.isalpha()` incorrectly rejects valid 8-char
UUIDs composed entirely of A-F characters (e.g. DEADBEEF). MFC UUIDs are
CRC32-based 8-char uppercase hex strings, so checking isalpha() introduces
false negatives for any UUID whose digits happen to all be A-F.
Fix by checking that every character is a valid hex digit using:
all(c in '0123456789abcdef' for c in t.lower())
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a9b1e40 commit 468fcf3
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments