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:
parent
04d459ac81
commit
09f1307a85
3
gitstats
3
gitstats
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user