fix regex in pl_login_base()
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 25 Feb 2014 15:05:21 +0000 (10:05 -0500)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 25 Feb 2014 15:05:21 +0000 (10:05 -0500)
sfa/planetlab/plxrn.py

index 8c146aa..2c24f1e 100644 (file)
@@ -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:]