1
0
scáthán de https://github.com/quitesimpleorg/qsmaddy.git sioncronaithe 2025-01-30 18:55:32 +01:00

emphasizedparser: Underscore does not need backslash

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Tá an tiomantas seo le fáil i:
Patrick José Pereira 2018-10-25 14:47:52 -03:00
tuismitheoir 7c26aa0431
tiomantas a84da9de61

Féach ar an gComhad

@ -41,7 +41,7 @@ public:
void
Parse(std::string& line) override
{
static std::regex re("(?!.*`.*|.*<code>.*)\\_(?!.*`.*|.*<\\/code>.*)([^\\_]*)\\_(?!.*`.*|.*<\\/code>.*)");
static std::regex re("(?!.*`.*|.*<code>.*)_(?!.*`.*|.*<\\/code>.*)([^_]*)_(?!.*`.*|.*<\\/code>.*)");
static std::string replacement = "<em>$1</em>";
line = std::regex_replace(line, re, replacement);