diff options
author | Maël Gassmann <mael.gassmann@students.bfh.ch> | 2022-03-02 16:05:57 +0100 |
---|---|---|
committer | Maël Gassmann <mael.gassmann@students.bfh.ch> | 2022-03-02 16:05:57 +0100 |
commit | 60ea89a36e2a0258f060aabbcbe435ed1d33b33a (patch) | |
tree | 8a6938756e0f7f0d6ae57de30169c4b108bfca85 /inc | |
parent | 36b3422daed37549e405ed4a5bb37b601012ca21 (diff) |
[~] Fixed date parsing issue
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]; |