Selaa lähdekoodia

ignore case for pattern matching

pull/18/head
Joel Schaerer 16 vuotta sitten
vanhempi
commit
70ebf63438
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      autojump.py

+ 1
- 1
autojump.py Näytä tiedosto

@ -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

Ladataan…
Peruuta
Tallenna