소스 검색

Debugging Coloscript2 & PlanetUp

david 5 년 전
부모
커밋
f1bfeeda1e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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('#', ''))