Fixed regex for remove_WIDEn_N to catch WIDE entries and not allow a
digi named WIDE
This commit is contained in:
parent
3e1fdce439
commit
6afb3a667c
|
|
@ -49,5 +49,5 @@ def remove_WIDEn_N(path):
|
|||
returns: list of digipeaters that digipeated packet, in order
|
||||
"""
|
||||
path = map(lambda x: re.sub('\*$', '', x), path) # Remove asterisks
|
||||
path = list(filter(lambda x: not re.match(r'WIDE[0-9\-\*]+$', x), path))
|
||||
path = list(filter(lambda x: not re.match(r'WIDE[0-9\-\*]*$', x), path))
|
||||
return(path)
|
||||
|
|
|
|||
Loading…
Reference in New Issue