소스 검색

weird corner cases

pull/18/head release-v8
Joël Schaerer 14 년 전
부모
커밋
c533b2b4fd
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      autojump

+ 4
- 1
autojump 파일 보기

@ -37,7 +37,10 @@ def dicadd(dic,key,increment=1):
def match(path,pattern,path_dict,re_flags=0):
import re
if os.path.realpath(os.curdir)==path : return False
try:
if os.path.realpath(os.curdir)==path : return False
except OSError: #sometimes the current path doesn't exist anymore. In that case, jump if possible.
pass
if re.search(pattern,"/".join(path.split('/')[-1-pattern.count('/'):]),re_flags) is None:
return False
else:

불러오는 중...
취소
저장