voronind/range-regex

Infinite Loop for Negative Numbers

speedplane opened this issue · 1 comments

The following results in an infinite loop:

import range_regex
range_regex.bounded_regex_for_range(-2, 50)

If negatives aren't supported, would at least be nice to throw an exception.

If you need support for negative numbers, check out range_ex