Merge pull request #384 from pjft/path-fixes

Fixing common path detection
This commit is contained in:
Jools Wills 2018-03-02 22:27:53 +00:00 committed by GitHub
commit 1e668d8e3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -454,7 +454,7 @@ namespace Utils
std::string common = isDirectory(_common) ? getGenericPath(_common) : getParent(_common);
// check if path contains common
if(path.find_first_of(common) == 0)
if(path.find(common) == 0)
{
_contains = true;
return path.substr(common.length() + 1);