Skip to content

Commit 4e1a5d0

Browse files
authored
Update create_master_lists.py
make the count to be computed when the limit is not fixed but variable
1 parent 203131a commit 4e1a5d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/create_master_lists.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ def close(self):
7070

7171
xmlfile.write(xml)
7272

73-
73+
7474
def parse_octet_length(octet_str):
7575
# attempt to compute the length for simple cases
7676
# fallback if expression is more complex
77-
if any(sym in octet_str for sym in ['(', ')', '+', '*', 'ND', 'NF']):
78-
return "Expression: " + octet_str
77+
if any(sym in octet_str for sym in ['(', ')', '+', '*', 'ND', 'NF', 'n']):
78+
return ""
7979

8080
total_length = 0
8181
parts = [p.strip() for p in octet_str.split(',')]
@@ -89,7 +89,7 @@ def parse_octet_length(octet_str):
8989
elif single_match:
9090
total_length += 1
9191
else:
92-
return "Expression: " + octet_str
92+
return ""
9393
return str(total_length)
9494

9595

0 commit comments

Comments
 (0)