git-svn-id: svn://db.shs.com.ru/pip@771 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -115,7 +115,7 @@ PIString PIFile::FileInfo::extension() const {
|
|||||||
while (n.startsWith("."))
|
while (n.startsWith("."))
|
||||||
n.pop_front();
|
n.pop_front();
|
||||||
if (n.isEmpty()) return PIString();
|
if (n.isEmpty()) return PIString();
|
||||||
int i = n.find(".");
|
int i = n.findLast(".");
|
||||||
if (i < 0) return PIString();
|
if (i < 0) return PIString();
|
||||||
return n.mid(i + 1);
|
return n.mid(i + 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user