From 60ea89a36e2a0258f060aabbcbe435ed1d33b33a Mon Sep 17 00:00:00 2001 From: Maƫl Gassmann Date: Wed, 2 Mar 2022 16:05:57 +0100 Subject: [~] Fixed date parsing issue --- inc/FileAssembler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/FileAssembler.h b/inc/FileAssembler.h index 1a37207..0ae61df 100644 --- a/inc/FileAssembler.h +++ b/inc/FileAssembler.h @@ -27,7 +27,7 @@ private: map assemble_from_iterator(map::iterator it, map::iterator end, bool is_post); string parse(string title, string content, bool is_post); static string parse_arg(string to_parse){ - static std::regex rgx("\\w+\\((.*)\\)"); + static std::regex rgx("\\w+\\(([^\\)\\$]*)\\)"); std::smatch match; if (std::regex_search(to_parse, match, rgx)) return match[1]; -- cgit v1.2.3