mirror of
https://github.com/quitesimpleorg/qsmaddy.git
synced 2024-11-24 00:02:36 +01:00
italicparser: Parse(): Add static keyword to regex
In line with the other parsers, add the static keyword to the regex.
This commit is contained in:
parent
adb1a910d4
commit
a28769be2b
1
AUTHORS
1
AUTHORS
@ -9,3 +9,4 @@ Patrick José Pereira (patrickelectric@gmail.com)
|
|||||||
Martin Kopecky (martin.kopecky357@gmail.com)
|
Martin Kopecky (martin.kopecky357@gmail.com)
|
||||||
Andrew Mettlach (dmmettlach@gmail.com)
|
Andrew Mettlach (dmmettlach@gmail.com)
|
||||||
Evan Klitzke (evan@eklitzke.org)
|
Evan Klitzke (evan@eklitzke.org)
|
||||||
|
Albert Schwarzkopf (dev-maddy@quitesimple.org)
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
void
|
void
|
||||||
Parse(std::string& line) override
|
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>";
|
static std::string replacement = "<i>$1</i>";
|
||||||
line = std::regex_replace(line, re, replacement);
|
line = std::regex_replace(line, re, replacement);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user