fix pre regex heuristics: avoid double ```

This commit is contained in:
Denis-Cosmin NUTIU 2023-06-02 10:44:20 +03:00
parent 9b11cd6cee
commit 90fafdc261

View file

@ -13,7 +13,7 @@ class RegexHeuristics:
self.configurator = configurator
self._rules = {
"^(</*pre.*?>)(?P<content>.*?)(<\/pre>)?$": self._remove_pre_tag,
"^(</*pre.*?>)(?P<content>.*?)`{0,3}(<\/pre>)?$": self._remove_pre_tag,
}
def _remove_pre_tag(self, match) -> str: