mirror of
https://github.com/progsource/maddy.git
synced 2026-11-29 04:11:35 +00:00
strongparser: Underscore does not need backslash
Signed-off-by: Patrick José Pereira <[email protected]>
This commit is contained in:
1 parent
3c54e901c3
commit
7c26aa0431
1 file changed
+1
-1
@@ -44,7 +44,7 @@ public:
|
||||
static std::vector<std::regex> res
|
||||
{
|
||||
std::regex{"(?!.*`.*|.*<code>.*)\\*\\*(?!.*`.*|.*<\\/code>.*)([^\\*\\*]*)\\*\\*(?!.*`.*|.*<\\/code>.*)"},
|
||||
std::regex{"(?!.*`.*|.*<code>.*)\\_\\_(?!.*`.*|.*<\\/code>.*)([^\\_\\_]*)\\_\\_(?!.*`.*|.*<\\/code>.*)"}
|
||||
std::regex{"(?!.*`.*|.*<code>.*)__(?!.*`.*|.*<\\/code>.*)([^__]*)__(?!.*`.*|.*<\\/code>.*)"}
|
||||
};
|
||||
static std::string replacement = "<strong>$1</strong>";
|
||||
for (const auto& re : res)
|
||||
|
||||
Reference in new issue
Block a user