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)