Fix import of ship/structure names containing single quotes

This commit is contained in:
DarkPhoenix
2020-08-13 01:15:41 +03:00
parent a976fb33f0
commit a387bc8d09

View File

@@ -598,7 +598,7 @@ def _importCreateFit(lines):
"""Create fit and set top-level entity (ship or citadel)."""
fit = Fit()
header = lines.pop(0)
m = re.match('\[(?P<shipType>[\w\s]+),\s*(?P<fitName>.+)\]', header)
m = re.match('\[(?P<shipType>[\w\s\']+),\s*(?P<fitName>.+)\]', header)
if not m:
pyfalog.warning('service.port.eft.importEft: corrupted fit header')
raise EftImportError