diff --git a/src/string_utils.cpp b/src/string_utils.cpp index e10a49b..4326923 100644 --- a/src/string_utils.cpp +++ b/src/string_utils.cpp @@ -93,7 +93,7 @@ map sc::parse_ini_file(const string& path, bool ignore_sections) prefix = string{m[1]} + '.'; } } - regex key_value_pat {R"(^\s*(.*)\s*=\s*("?)(.*)\2)"}; + regex key_value_pat {R"(^\s*(.*?)\s*=\s*("?)(.*)\2)"}; smatch match; if (regex_search(line, match, key_value_pat)) { result[prefix + string{match[1]}] = match[3];