fix: Use IGNORECASE on the compiled pattern to support any casing for the UNC paths.
This commit is contained in:
parent
c454edd546
commit
31f4aa96a7
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue