fix: Use IGNORECASE on the compiled pattern to support any casing for the UNC paths.

This commit is contained in:
Håkon Solbjørg 2018-12-28 17:36:26 +01:00
parent c454edd546
commit 31f4aa96a7
No known key found for this signature in database
GPG Key ID: 9B505DA70D6C2DBC
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ log = logging.getLogger('WakaTime')
BACKSLASH_REPLACE_PATTERN = re.compile(r'[\\/]+')
WINDOWS_DRIVE_PATTERN = re.compile(r'^[a-z]:/')
WINDOWS_NETWORK_MOUNT_PATTERN = re.compile(r'^\\{2}[a-z]+')
WINDOWS_NETWORK_MOUNT_PATTERN = re.compile(r'^\\{2}[a-z]+', re.IGNORECASE)
def should_exclude(entity, include, exclude):