summaryrefslogtreecommitdiff
path: root/django/utils/regex_helper.py
diff options
context:
space:
mode:
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.