From 7c26aa04317664b28f4fde2ebd09c44ed7e4f081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 25 Oct 2018 14:47:16 -0300 Subject: [PATCH] strongparser: Underscore does not need backslash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- include/maddy/strongparser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/maddy/strongparser.h b/include/maddy/strongparser.h index c2dc441..589dacc 100644 --- a/include/maddy/strongparser.h +++ b/include/maddy/strongparser.h @@ -44,7 +44,7 @@ public: static std::vector res { std::regex{"(?!.*`.*|.*.*)\\*\\*(?!.*`.*|.*<\\/code>.*)([^\\*\\*]*)\\*\\*(?!.*`.*|.*<\\/code>.*)"}, - std::regex{"(?!.*`.*|.*.*)\\_\\_(?!.*`.*|.*<\\/code>.*)([^\\_\\_]*)\\_\\_(?!.*`.*|.*<\\/code>.*)"} + std::regex{"(?!.*`.*|.*.*)__(?!.*`.*|.*<\\/code>.*)([^__]*)__(?!.*`.*|.*<\\/code>.*)"} }; static std::string replacement = "$1"; for (const auto& re : res)