From 5551a018acd1eeddc770c439d91cc5ca439d0f6c Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 11 Oct 2013 22:36:39 -0500 Subject: [PATCH] fixed unnecessary escaping in regex, thanks Stefan Pochmann --- VERSION | 2 +- gluon/validators.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 6806120e..1137315f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.7.3-stable+timestamp.2013.10.11.20.42.02 +Version 2.7.3-stable+timestamp.2013.10.11.22.35.50 diff --git a/gluon/validators.py b/gluon/validators.py index 8378e29d..76d9dc0c 100644 --- a/gluon/validators.py +++ b/gluon/validators.py @@ -22,7 +22,7 @@ from cStringIO import StringIO from gluon.utils import simple_hash, web2py_uuid, DIGEST_ALG_BY_SIZE from gluon.dal import FieldVirtual, FieldMethod -regex_isint = re.compile('^[\+\-]?\d+$') +regex_isint = re.compile('^[+-]?\d+$') JSONErrors = (NameError, TypeError, ValueError, AttributeError, KeyError)