1
0
قرینه از https://github.com/quitesimpleorg/qsmaddy.git synced 2025-11-01 01:39:28 +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:
2021-04-18 11:40:15 +02:00
والد adb1a910d4
کامیت a28769be2b
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده

مشاهده پرونده

@@ -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);
}