Explorar el Código

Debugging Coloscript2 & PlanetUp

david hace 5 años
padre
commit
f1bfeeda1e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      flexible.py

+ 2 - 2
flexible.py

@@ -2348,7 +2348,7 @@ class PlanetUpScript(object):
                 details, _, citadel = line.partition('Class')
                 log.info(details) # Is that what we are after?
                 log.info(citadel)
-                sector, planet_number, name = re.split(r'\s*', details.strip(), 2)
+                sector, planet_number, name = re.split(r'\s+', details.strip(), 2)
                 sector = int(sector)
                 number = int(planet_number.replace('#', ''))
                 if 'Level' in citadel:
@@ -2836,7 +2836,7 @@ class ColoScript2(object):
                 details, _, citadel = line.partition('Class')
                 #log.info(details) # Is that what we are after?
                 #log.info(citadel)
-                sector, planet_number, name = re.split(r'\s*', details.strip(), 2)
+                sector, planet_number, name = re.split(r'\s+', details.strip(), 2)
                 log.info("'{0}' '{1}' '{2}'".format(sector, planet_number, name))
                 sector = int(sector)
                 number = int(planet_number.replace('#', ''))