From 3982850dd302e859b77993ed048837c08a4e2311 Mon Sep 17 00:00:00 2001 From: Michal Kunc Date: Thu, 18 Nov 2021 23:33:46 +0100 Subject: [PATCH] Add support for long roll command --- db_explorer/db_explorer/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_explorer/db_explorer/app.py b/db_explorer/db_explorer/app.py index 98cc391..4ba8688 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\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')