From f2f0ba291039230dc85d8bff6ff6f6e843f14381 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 25 Feb 2014 10:13:31 -0500 Subject: [PATCH] fix regex in pl_login_base() --- sfa/planetlab/plxrn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfa/planetlab/plxrn.py b/sfa/planetlab/plxrn.py index c9fa5ca0..7d2c5bb3 100644 --- a/sfa/planetlab/plxrn.py +++ b/sfa/planetlab/plxrn.py @@ -99,7 +99,7 @@ class PlXrn (Xrn): # Fix up names of GENI Federates base = base.lower() - base = re.sub('\\\[^a-zA-Z0-9]', '', base) + base = re.sub('[\\\\]*[^a-zA-Z0-9]', '', base) if len(base) > 20: base = base[len(base)-20:] -- 2.43.0