1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Update comment

This commit is contained in:
Ryan Breaker
2017-10-24 20:03:10 -05:00
parent 1a6ee237f6
commit 53f58d4496

View File

@ -81,7 +81,8 @@ def expand_numeric_pattern(string):
def parse_alphanumeric_range(string):
"""
Expand an alphanumeric range (continuous or not) into a list.
'a-d,f' => ['a', 'b', 'c', 'd', 'f']
'a-d,f' => [a, b, c, d, f]
'0-3,a-d' => [0, 1, 2, 3, a, b, c, d]
"""
values = []
for dash_range in string.split(','):