2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

cleanup and fixes

This commit is contained in:
Jack Andersen
2015-07-19 10:52:22 -10:00
parent 662c2bc689
commit 7a5fc8236a
9 changed files with 35 additions and 27 deletions

View File

@@ -22,9 +22,8 @@ static SystemString canonRelPath(const SystemString& path)
std::vector<SystemString> comps;
HECL::SystemRegexMatch matches;
SystemString in = path;
while (std::regex_search(in, matches, regPATHCOMP))
for (; std::regex_search(in, matches, regPATHCOMP) ; in = matches.suffix())
{
in = matches.suffix();
const SystemString& match = matches[1];
if (!match.compare(_S(".")))
continue;