We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1808f57 commit f9d0fabCopy full SHA for f9d0fab
range_regex/range_regex.py
@@ -56,7 +56,7 @@ def split_to_patterns(min_, max_):
56
57
58
def split_to_ranges(min_, max_):
59
- stops = {max_}
+ stops = set([max_])
60
61
nines_count = 1
62
stop = fill_by_nines(min_, nines_count)
@@ -96,7 +96,7 @@ def range_to_pattern(start, stop):
96
if start_digit == stop_digit:
97
pattern += start_digit
98
elif start_digit != '0' or stop_digit != '9':
99
- pattern += '[{}-{}]'.format(start_digit, stop_digit)
+ pattern += '[{0}-{1}]'.format(start_digit, stop_digit)
100
else:
101
any_digit_count += 1
102
0 commit comments