From a22eb0673fe0b7784f99c6b5fd343b64a6700f06 Mon Sep 17 00:00:00 2001 From: noobpk Date: Fri, 19 Nov 2021 23:11:33 +0700 Subject: [PATCH] Update pattern --- helpdesk/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/models.py b/helpdesk/models.py index 31bed5df..f8ffb8b1 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -56,7 +56,7 @@ def get_markdown(text): if not text: return "" - pattern = fr'([\[\s\S\]]*?)\(([\s\S]*?):([\[\s\S\]]*?)\)' + pattern = fr'([\[\s\S\]]*?)\(([\s\S]*?):([\s\S]*?)\)' # Regex check if re.match(pattern, text): # get get value of group regex