From 8225a2297e9d3be305ca494c7e3c7b826b7712f0 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 27 Jul 2020 11:54:24 -0400 Subject: [PATCH] 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. --- confluent_server/confluent/noderange.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/noderange.py b/confluent_server/confluent/noderange.py index be35829e..17375150 100644 --- a/confluent_server/confluent/noderange.py +++ b/confluent_server/confluent/noderange.py @@ -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: