Fix type: wrong regex char
This commit is contained in:
parent
ec6a94f18e
commit
91e17be830
@ -21,7 +21,7 @@ def filter_vtt(text):
|
|||||||
def compendium_return(m):
|
def compendium_return(m):
|
||||||
# TODO: Actually add links
|
# TODO: Actually add links
|
||||||
return f"<a>{m.group(2)}</a>"
|
return f"<a>{m.group(2)}</a>"
|
||||||
macro_re = re.compile(r"\[\[\/\S+?r(?:oll)?\s(?:(?P<sdice>[^\{\] ]+)[^\{\]]*|(?:\{(?P<ldice>[^\}]+)\}\[[^\]]+\])?)\]\](?:\{(?P<alt>[^\}]+)\})?")
|
macro_re = re.compile(r"\[\[\/\S*?r(?:oll)?\s(?:(?P<sdice>[^\{\] ]+)[^\{\]]*|(?:\{(?P<ldice>[^\}]+)\}\[[^\]]+\])?)\]\](?:\{(?P<alt>[^\}]+)\})?")
|
||||||
def macro_return(m):
|
def macro_return(m):
|
||||||
if m.group('alt') is not None:
|
if m.group('alt') is not None:
|
||||||
return m.group('alt')
|
return m.group('alt')
|
||||||
|
Loading…
Reference in New Issue
Block a user