Removed non utf-8 characters

This commit is contained in:
Tim-Jackins
2019-09-09 12:45:22 -04:00
parent 9a49e7cb14
commit 08ed7da59d
52 changed files with 1386 additions and 1381 deletions
+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)