mirror of
https://github.com/progsource/maddy.git
synced 2026-11-29 04:11:35 +00:00
Merge pull request #35 from quitesimpleorg/fix/add_static_italic
italicparser: Parse(): Add static keyword to regex
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -9,3 +9,4 @@ Patrick José Pereira ([email protected])
|
||||
Martin Kopecky ([email protected])
|
||||
Andrew Mettlach ([email protected])
|
||||
Evan Klitzke ([email protected])
|
||||
Albert Schwarzkopf ([email protected])
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
void
|
||||
Parse(std::string& line) override
|
||||
{
|
||||
std::regex re("(?!.*`.*|.*<code>.*)\\*(?!.*`.*|.*<\\/code>.*)([^\\*]*)\\*(?!.*`.*|.*<\\/code>.*)");
|
||||
static std::regex re("(?!.*`.*|.*<code>.*)\\*(?!.*`.*|.*<\\/code>.*)([^\\*]*)\\*(?!.*`.*|.*<\\/code>.*)");
|
||||
static std::string replacement = "<i>$1</i>";
|
||||
line = std::regex_replace(line, re, replacement);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user