Do not consider a dot in path a filename extension.

'highlight.js/LICENSE' was recognized as 'js/LICENSE' extension erroneously.

Fixes SourceForge bug #3221520.

Thanks-to: Alexander Gladysh <agladysh@users.sourceforge.net>
This commit is contained in:
Heikki Hokkanen 2011-03-21 19:46:09 +02:00
parent 04d459ac81
commit 09f1307a85

View File

@ -405,8 +405,9 @@ class GitDataCollector(DataCollector):
continue
parts = re.split('\s+', line, 4)
sha1 = parts[2]
filename = parts[3]
fullpath = parts[3]
filename = fullpath.split('/')[-1] # strip directories
if filename.find('.') == -1 or filename.rfind('.') == 0:
ext = ''
else: