Skip to content

Commit

Permalink
applied patch from neonknight
Browse files Browse the repository at this point in the history
  • Loading branch information
antonc42 committed Oct 16, 2018
1 parent 1808f57 commit f9d0fab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions range_regex/range_regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def split_to_patterns(min_, max_):


def split_to_ranges(min_, max_):
stops = {max_}
stops = set([max_])

nines_count = 1
stop = fill_by_nines(min_, nines_count)
Expand Down Expand Up @@ -96,7 +96,7 @@ def range_to_pattern(start, stop):
if start_digit == stop_digit:
pattern += start_digit
elif start_digit != '0' or stop_digit != '9':
pattern += '[{}-{}]'.format(start_digit, stop_digit)
pattern += '[{0}-{1}]'.format(start_digit, stop_digit)
else:
any_digit_count += 1

Expand Down

0 comments on commit f9d0fab

Please sign in to comment.