mirror of
https://github.com/wting/autojump
synced 2025-06-07 18:04:09 +00:00
Merge 7e3f4b67fe
into ee21082751
This commit is contained in:
commit
be9559b552
@ -75,7 +75,7 @@ def match_consecutive(needles, haystack, ignore_case=False):
|
|||||||
(path='/foo/baz', weight=10),
|
(path='/foo/baz', weight=10),
|
||||||
]
|
]
|
||||||
"""
|
"""
|
||||||
regex_no_sep = '[^' + os.sep + ']*'
|
regex_no_sep = '[^\\' + os.sep + ']*'
|
||||||
regex_no_sep_end = regex_no_sep + '$'
|
regex_no_sep_end = regex_no_sep + '$'
|
||||||
regex_one_sep = regex_no_sep + os.sep + regex_no_sep
|
regex_one_sep = regex_no_sep + os.sep + regex_no_sep
|
||||||
regex_needle = regex_one_sep.join(imap(re.escape, needles)) + regex_no_sep_end
|
regex_needle = regex_one_sep.join(imap(re.escape, needles)) + regex_no_sep_end
|
||||||
|
Loading…
Reference in New Issue
Block a user