Skip to content

Commit

Permalink
set the regex check in validate methode to be case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Oswald committed May 2, 2014
1 parent 049d93e commit d51f41f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def validate(self, regex, data):
if key not in regex.keys():
unknown.append(key)
errors = True
elif not re.search(regex[key], value):
elif not re.search(regex[key], value, re.IGNORECASE):
invalid.append(key)
errors = True

Expand Down

0 comments on commit d51f41f

Please sign in to comment.