From 09fb170a83b7d04cd501fe1baa731af5c69b28e8 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 9 Jan 2014 08:38:39 -0600 Subject: [PATCH] possibile regex fix --- VERSION | 2 +- gluon/validators.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 19af10b9..c3ac513b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.8.2-stable+timestamp.2014.01.08.13.42.47 +Version 2.8.2-stable+timestamp.2014.01.09.08.37.33 diff --git a/gluon/validators.py b/gluon/validators.py index c9a20e33..d2db9df4 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('%\((?P[^\)]+)\)\d*(\.\d+)?[a-zA-Z]') class IS_IN_DB(Validator):