Merge pull request #109 from tritoch/replace-typeline-dash

Replace `-` in type line with `—`
This commit is contained in:
Zach H 2017-07-11 00:17:52 -04:00 committed by GitHub
commit 2b41643255

View File

@ -153,6 +153,8 @@ def error_check(mtgjson, card_corrections={}):
if not 'subtypes' in card:
errors.append(
{"name": card['name'], "key": "subtypes", "value": ""})
if '-' in card['type']:
card['type'] = card['type'].replace('-',u'')
if 'manaCost' in card:
workingCMC = 0
stripCost = card['manaCost'].replace('{', '').replace('}', '')