Skip to content

Commit e09215c

Browse files
committed
Make offline suffix lowercase
1 parent b24a3c7 commit e09215c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/port/eft.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
MODULE_CATS = ('Module', 'Subsystem', 'Structure Module')
4747
SLOT_ORDER = (FittingSlot.LOW, FittingSlot.MED, FittingSlot.HIGH, FittingSlot.RIG, FittingSlot.SUBSYSTEM, FittingSlot.SERVICE)
48-
OFFLINE_SUFFIX = '/OFFLINE'
48+
OFFLINE_SUFFIX = '/offline'
4949
NAME_CHARS = r'[^,/\[\]]' # Characters which are allowed to be used in name
5050

5151

@@ -251,7 +251,7 @@ def importEft(lines):
251251
aFit.mutations = importGetMutationData(lines)
252252

253253
stubPattern = r'^\[.+?\]$'
254-
modulePattern = r'^(?P<typeName>{0}+?)(,\s*(?P<chargeName>{0}+?))?(?P<offline>\s*{1})?(\s*\[(?P<mutation>\d+?)\])?$'.format(NAME_CHARS, OFFLINE_SUFFIX)
254+
modulePattern = r'^(?P<typeName>{0}+?)(,\s*(?P<chargeName>{0}+?))?(?P<offline>\s*/(OFFLINE|offline))?(\s*\[(?P<mutation>\d+?)\])?$'.format(NAME_CHARS)
255255
droneCargoPattern = r'^(?P<typeName>{}+?) x(?P<amount>\d+?)(\s*\[(?P<mutation>\d+?)\])?$'.format(NAME_CHARS)
256256

257257
sections = []

0 commit comments

Comments
 (0)