From 90fafdc2610ac9d34f94da60d7a2b300c3289be0 Mon Sep 17 00:00:00 2001 From: Denis-Cosmin NUTIU Date: Fri, 2 Jun 2023 10:44:20 +0300 Subject: [PATCH] fix pre regex heuristics: avoid double ``` --- app/converter/regex_heuristics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/converter/regex_heuristics.py b/app/converter/regex_heuristics.py index 5fa4177..5ba2f4b 100644 --- a/app/converter/regex_heuristics.py +++ b/app/converter/regex_heuristics.py @@ -13,7 +13,7 @@ class RegexHeuristics: self.configurator = configurator self._rules = { - "^()(?P.*?)(<\/pre>)?$": self._remove_pre_tag, + "^()(?P.*?)`{0,3}(<\/pre>)?$": self._remove_pre_tag, } def _remove_pre_tag(self, match) -> str: