|
@@ -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('#', ''))
|