fix:修正带'的路径不能正确识别的问题。

This commit is contained in:
taynpg 2024-12-17 08:20:38 +08:00
parent ab00cffffd
commit e5cc1056b9
2 changed files with 12 additions and 1 deletions

View File

@ -125,6 +125,11 @@
"queue": "cpp",
"resumable": "cpp",
"numeric": "cpp",
"set": "cpp"
"set": "cpp",
"*.tcc": "cpp",
"cwctype": "cpp",
"memory_resource": "cpp",
"random": "cpp",
"cinttypes": "cpp"
}
}

View File

@ -20,9 +20,15 @@ std::vector<std::string> CFileOpr::get_file_list(const std::string& input)
auto vec = COfStr::split(backup, "|");
for (const auto& item : vec) {
std::string ret(item);
#ifdef _WIN32
if (item.find("\"") != std::string::npos) {
ret = COfStr::replace(item, "\"", "");
}
#else
if (item.find(R"(')") != std::string::npos) {
ret = COfStr::replace(item, R"(')", "");
}
#endif
result.push_back(COfPath::to_full(ret));
}
return result;