From: Tony Mack Date: Tue, 25 Feb 2014 15:05:21 +0000 (-0500) Subject: fix regex in pl_login_base() X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=2b92a9eefdd60d80f667d3ab68aa3b222e9f871d fix regex in pl_login_base() --- diff --git a/sfa/planetlab/plxrn.py b/sfa/planetlab/plxrn.py index 8c146aac..2c24f1e2 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:]