Fixed regex for remove_WIDEn_N to catch WIDE entries and not allow a

digi named WIDE
This commit is contained in:
Bill Mitchell 2018-07-30 20:26:34 -05:00
parent 3e1fdce439
commit 6afb3a667c
1 changed files with 1 additions and 1 deletions

View File

@ -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)