Explorar o código

Update comment

Ryan Breaker %!s(int64=8) %!d(string=hai) anos
pai
achega
53f58d4496
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      netbox/utilities/forms.py

+ 2 - 1
netbox/utilities/forms.py

@@ -81,7 +81,8 @@ def expand_numeric_pattern(string):
 def parse_alphanumeric_range(string):
 def parse_alphanumeric_range(string):
     """
     """
     Expand an alphanumeric range (continuous or not) into a list.
     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 = []
     values = []
     for dash_range in string.split(','):
     for dash_range in string.split(','):