From 6afb3a667c52e7b4fefdb2c0c4c79734c9a816a4 Mon Sep 17 00:00:00 2001 From: Bill Mitchell Date: Mon, 30 Jul 2018 20:26:34 -0500 Subject: [PATCH] Fixed regex for remove_WIDEn_N to catch WIDE entries and not allow a digi named WIDE --- aprslib/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aprslib/util/__init__.py b/aprslib/util/__init__.py index c821802..07d2b33 100644 --- a/aprslib/util/__init__.py +++ b/aprslib/util/__init__.py @@ -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)