From 51d61b68fed1784d5f587d1969ffe2754563644c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kopeck=C3=BD?= Date: Thu, 30 Jan 2020 17:38:55 +0100 Subject: [PATCH] Added another character for bullet point("-") --- include/maddy/unorderedlistparser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/maddy/unorderedlistparser.h b/include/maddy/unorderedlistparser.h index d8706af..2d70eed 100644 --- a/include/maddy/unorderedlistparser.h +++ b/include/maddy/unorderedlistparser.h @@ -54,7 +54,7 @@ public: static bool IsStartingLine(const std::string& line) { - static std::regex re("^\\* .*"); + static std::regex re("^[\\*-] .*"); return std::regex_match(line, re); } @@ -89,7 +89,7 @@ protected: bool isStartOfNewListItem = IsStartingLine(line); uint32_t indentation = getIndentationWidth(line); - static std::regex lineRegex("^(\\* )"); + static std::regex lineRegex("^([\\*-] )"); line = std::regex_replace(line, lineRegex, ""); if (!this->isStarted)