Skip to content

Commit

Permalink
Fix to make RFC4122_RE case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
matmat authored and remia committed Apr 24, 2021
1 parent 4b00db4 commit c2ed665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clairmeta/utils/uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
RE = '(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)'
FILE_RE = '([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})'
RFC4122_RE = '(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-([1-5])[0-9a-fA-F]{3}\
-[8-9a-b][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$)'
-[8-9a-bA-B][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$)'


def check_uuid(uuid, regex=RE):
Expand Down

0 comments on commit c2ed665

Please sign in to comment.