mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-23 01:53:28 +00:00
Add '..' to range operators
The perl-style range operator exists in some tools, we might as well support that alongside the usual '-' operator and ':' python style operator.
This commit is contained in:
parent
b09631fcbf
commit
8225a2297e
@ -250,6 +250,8 @@ class NodeRange(object):
|
||||
return nodes
|
||||
if ':' in element: # : range for less ambiguity
|
||||
return self.expandrange(element, ':')
|
||||
elif '..' in element:
|
||||
return self.expandrange(element, '..')
|
||||
elif '-' in element:
|
||||
return self.expandrange(element, '-')
|
||||
elif '+' in element:
|
||||
|
Loading…
Reference in New Issue
Block a user