filter_filename lloks for a numeric after _v to determine version number and strips it off therefore

This commit is contained in:
Asad M. Zaman 2005-08-25 03:22:48 +00:00
parent efa9b3c37f
commit 017c83a986
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,8 @@ filter_filename(const string &source) {
size_t dot = source.rfind('.');
size_t underscore = source.rfind("_v", dot);
if ((underscore != string::npos) && !isdigit(source.at(underscore+2)))
underscore = string::npos;
string extension = source.substr(dot);
if (extension == ".ma") {