[colobot] 132/390: Fixed regex in CResourceManager::CleanPath
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:21:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit 569dd8ed25e7637fa3a1d3b0cbcde8612572c523
Author: krzys-h <krzys_h at interia.pl>
Date: Sun Oct 26 20:43:51 2014 +0100
Fixed regex in CResourceManager::CleanPath
---
src/common/resources/resourcemanager.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/resources/resourcemanager.cpp b/src/common/resources/resourcemanager.cpp
index b825374..475d71e 100644
--- a/src/common/resources/resourcemanager.cpp
+++ b/src/common/resources/resourcemanager.cpp
@@ -58,7 +58,7 @@ CResourceManager::~CResourceManager()
std::string CResourceManager::CleanPath(const std::string& path)
{
- return boost::regex_replace(path, boost::regex("\\.\\./(.*)/"), "");
+ return boost::regex_replace(path, boost::regex("(.*)/\\.\\./"), "");
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list