diff --git a/db_explorer/db_explorer/app.py b/db_explorer/db_explorer/app.py index bc80340..506351e 100644 --- a/db_explorer/db_explorer/app.py +++ b/db_explorer/db_explorer/app.py @@ -21,7 +21,7 @@ def filter_vtt(text): def compendium_return(m): # TODO: Actually add links return f"{m.group(2)}" - macro_re = re.compile(r"\[\[\/\S+?r(?:oll)?\s(?:(?P[^\{\] ]+)[^\{\]]*|(?:\{(?P[^\}]+)\}\[[^\]]+\])?)\]\](?:\{(?P[^\}]+)\})?") + macro_re = re.compile(r"\[\[\/\S*?r(?:oll)?\s(?:(?P[^\{\] ]+)[^\{\]]*|(?:\{(?P[^\}]+)\}\[[^\]]+\])?)\]\](?:\{(?P[^\}]+)\})?") def macro_return(m): if m.group('alt') is not None: return m.group('alt')