Skip to content

Commit 14077ee

Browse files
committed
[models] support negative axis ranges in axis range syntax parsing
1 parent 3111606 commit 14077ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/slice/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def __init__(self, *args):
200200
]
201201
self._h_header = ["Min : Max [Default]", "Edit Values"]
202202
self.axis_range_regex = re.compile(
203-
r"(?P<start>\d+(\.\d+)?)\s*\:\s*(?P<end>\d+(\.\d+)?)\s*(\[\s*(?P<default>\d+(\.?\d+)?)\s*\])?"
203+
r"(?P<start>\-?\d+(\.\d+)?)\s*\:\s*(?P<end>\-?\d+(\.\d+)?)\s*(\[\s*(?P<default>\-?\d+(\.?\d+)?)\s*\])?"
204204
)
205205

206206
def data(self, index, role):

0 commit comments

Comments
 (0)