mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-18 20:23:27 +02:00
Fix syntax error in the regex (refs #46)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user