Permalink
Browse files

Fixed a bug in PyCheddar that caused IDs to not be correctly recognized.

  • Loading branch information...
1 parent b69ec7d commit 81788bfd679ab3814df77b945b6d3f0a0002a4df Luke Sneeringer committed Feb 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 __init__.py
View
@@ -57,7 +57,7 @@ def request(cls, path, code = None, item_code = None, product_code = None, pass_
code = str(code)
# it may be an ID instead; detect this
- if re.match(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', code):
+ if re.match(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', code):
if add_to_url is True:
url += '/id/' + code
else:

0 comments on commit 81788bf

Please sign in to comment.