Skip to content

Commit e6f99c9

Browse files
committed
Explicitly convert match to string
The implicit conversion to create a path object seems not to be supported on windows.
1 parent dc1c17e commit e6f99c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/control/script_reader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void ScriptReader::replaceIncludes(std::string& script, const DataDict& data)
173173
// Replace all include patterns in the line
174174
while (std::regex_search(script, match, include_pattern))
175175
{
176-
std::filesystem::path file_path(match[1]);
176+
std::filesystem::path file_path(match[1].str());
177177
std::string file_content = readScriptFile(script_path_.parent_path() / file_path.string(), data);
178178
script.replace(match.position(0), match.length(0), file_content);
179179
}

0 commit comments

Comments
 (0)