summaryrefslogtreecommitdiff
path: root/django/utils/regex_helper.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-09-01 23:03:03 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-09-01 23:03:03 +0000
commita9465a75de3d233df1a5e03b35835590369b1a30 (patch)
treed1209900d1e9029fac912ce61be0e0ea0f7d3662 /django/utils/regex_helper.py
parenteefec151d1443dfadaf0ef24f7422d4f22f52b43 (diff)
Fixed a case of incorrect parsing of quanitifers in reg-exp patterns.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/regex_helper.py')
-rw-r--r--django/utils/regex_helper.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/utils/regex_helper.py b/django/utils/regex_helper.py
index 545bf8899c..996e391707 100644
--- a/django/utils/regex_helper.py
+++ b/django/utils/regex_helper.py
@@ -248,6 +248,7 @@ def get_quantifier(ch, input_iter):
while ch != '}':
ch, escaped = input_iter.next()
quant.append(ch)
+ quant = quant[:-1]
values = ''.join(quant).split(',')
# Consume the trailing '?', if necessary.