diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/FileAssembler.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<string, string> assemble_from_iterator(map<string, string>::iterator it, map<string, string>::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]; |