+ small fix for better support of Windows

This commit is contained in:
kelson42 2012-10-15 17:53:18 +00:00
parent 956d37dee8
commit 49ec0b5652
1 changed files with 6 additions and 0 deletions

View File

@ -63,7 +63,13 @@ namespace kiwix {
std::string id = path;
if (!id.empty()) {
kiwix::removeAccents(id);
#ifdef _WIN32
id = replaceRegex(id, "", "^.*\\\\");
#else
id = replaceRegex(id, "", "^.*/");
#endif
id = replaceRegex(id, "", "\\.zim[a-z]*$");
id = replaceRegex(id, "_", " ");
id = replaceRegex(id, "plus", "\\+");