mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
ignore case for pattern matching
This commit is contained in:
parent
4b11dde6c3
commit
70ebf63438
@ -19,7 +19,7 @@ def dicadd(dic,key,increment=1):
|
||||
def match(path,pattern,path_dict):
|
||||
import re
|
||||
if os.path.realpath(os.curdir)==path : return False
|
||||
if re.search(pattern,"/".join(path.split('/')[-1-pattern.count('/'):])) is None:
|
||||
if re.search(pattern,"/".join(path.split('/')[-1-pattern.count('/'):]),re.IGNORECASE) is None:
|
||||
return False
|
||||
else:
|
||||
if os.path.exists(path) : return True
|
||||
|
Loading…
Reference in New Issue
Block a user