From c2a23d03c273e5f968f1204b1b718dc2d0af9dc6 Mon Sep 17 00:00:00 2001 From: Massimo Date: Thu, 9 Jan 2014 11:47:32 -0600 Subject: [PATCH] fixed issues with regex2 in validators? --- VERSION | 2 +- gluon/validators.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index c3ac513b..93dbd81a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.8.2-stable+timestamp.2014.01.09.08.37.33 +Version 2.8.2-stable+timestamp.2014.01.09.11.46.01 diff --git a/gluon/validators.py b/gluon/validators.py index d2db9df4..b8c85fea 100644 --- a/gluon/validators.py +++ b/gluon/validators.py @@ -458,7 +458,7 @@ class IS_IN_SET(Validator): regex1 = re.compile('\w+\.\w+') -regex2 = re.compile('%\((?P[^\)]+)\)\d*(\.\d+)?[a-zA-Z]') +regex2 = re.compile('%\(([^\)]+)\)\d*(?:\.\d+)?[a-zA-Z]') class IS_IN_DB(Validator):