Bläddra i källkod

Debugging Coloscript2 & PlanetUp

david 5 år sedan
förälder
incheckning
f1bfeeda1e
1 ändrade filer med 2 tillägg och 2 borttagningar
  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('#', ''))