fixed bug in encode/decode, thanks Jonathan
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.4.2-stable+timestamp.2013.03.10.11.04.02
|
||||
Version 2.4.2-stable+timestamp.2013.03.10.11.05.31
|
||||
|
||||
+1
-1
@@ -191,7 +191,7 @@ class IS_MATCH(Validator):
|
||||
|
||||
def __call__(self, value):
|
||||
if self.unicode and not isinstance(value,unicode):
|
||||
match = self.regex.search(str(value).encode('utf8'))
|
||||
match = self.regex.search(str(value).decode('utf8'))
|
||||
else:
|
||||
match = self.regex.search(str(value))
|
||||
if match is not None:
|
||||
|
||||
Reference in New Issue
Block a user