Fix syntax error in the regex (refs #46)

This commit is contained in:
Tomáš Heger
2020-04-26 00:58:20 +02:00
parent 0b81b05be0
commit 9b7241d4b9
+1 -1
View File
@@ -7,7 +7,7 @@ INFILE = '/home/mwolf/Documents/dungeons_and_dragons/spells.json'
data = json.load(open(INFILE, mode='r'))
components_re = re.compile('([VSM])?[, ]*([VSM])?[, ]*([VSM])?[, ]*'
'(?:\(([-a-zA-Z ,.0-9;'-()]+)\))?')
'(?:\(([-a-zA-Z ,.0-9;\'-()]+)\))?')
def parse_components(string):
result = components_re.match(string)