upgrade wakatime-cli to v10.8.2

This commit is contained in:
Alan Hamlett 2019-03-30 18:54:33 -07:00
parent e287f95b59
commit 53376776b1
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,7 @@
__title__ = 'wakatime'
__description__ = 'Common interface to the WakaTime api.'
__url__ = 'https://github.com/wakatime/wakatime'
__version_info__ = ('10', '8', '1')
__version_info__ = ('10', '8', '2')
__version__ = '.'.join(__version_info__)
__author__ = 'Alan Hamlett'
__author_email__ = 'alan@wakatime.com'

View file

@ -169,6 +169,10 @@ def get_language_from_extension(file_name):
"""
filepart, extension = os.path.splitext(file_name)
pathpart, filename = os.path.split(file_name)
if filename == 'go.mod':
return 'Go'
if re.match(r'\.h.*$', extension, re.IGNORECASE) or re.match(r'\.c.*$', extension, re.IGNORECASE):