fix:修正当前路径查找BUG
This commit is contained in:
parent
bbd0d6a247
commit
ebf30ce7c1
@ -136,7 +136,7 @@ std::string file_predict(const char* data)
|
|||||||
} else {
|
} else {
|
||||||
search_key = cur;
|
search_key = cur;
|
||||||
}
|
}
|
||||||
if (cur.find("/") == std::string::npos && cur.find("\\") == std::string::npos) {
|
if (search_key.find("/") == std::string::npos && search_key.find("\\") == std::string::npos) {
|
||||||
for (const auto& item : cur_work_content) {
|
for (const auto& item : cur_work_content) {
|
||||||
if (item != search_key && item.find(search_key) == 0) {
|
if (item != search_key && item.find(search_key) == 0) {
|
||||||
return item.substr(search_key.size(), item.size() - search_key.size());
|
return item.substr(search_key.size(), item.size() - search_key.size());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user