From 8ac9d0d8ac273afb408eb1e26441ac99513a0b0d Mon Sep 17 00:00:00 2001 From: Haridas Pachuveetil Date: Sun, 29 Jan 2017 12:12:05 -0500 Subject: [PATCH 1/2] fixes #436 - the suggested patch on the issue description --- bin/autojump_match.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/autojump_match.py b/bin/autojump_match.py index 8747b90..1788d32 100644 --- a/bin/autojump_match.py +++ b/bin/autojump_match.py @@ -75,9 +75,10 @@ def match_consecutive(needles, haystack, ignore_case=False): (path='/foo/baz', weight=10), ] """ - regex_no_sep = '[^' + os.sep + ']*' + sep = '\\\\' if os.sep == '\\' else os.sep + regex_no_sep = '[^' + 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 + sep + regex_no_sep regex_needle = regex_one_sep.join(imap(re.escape, needles)) + regex_no_sep_end regex_flags = re.IGNORECASE | re.UNICODE if ignore_case else re.UNICODE found = lambda entry: re.search( From a9d2993f312c7c13e6b297c62557f8a5d05b3ea5 Mon Sep 17 00:00:00 2001 From: Haridas Pachuveetil Date: Sun, 29 Jan 2017 12:25:24 -0500 Subject: [PATCH 2/2] adds a Travis CI badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 495226a..8e60671 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ NAME ---- -autojump - a faster way to navigate your filesystem +autojump - a faster way to navigate your filesystem [![Build Status](https://travis-ci.org/floydpink/autojump.svg?branch=master)](https://travis-ci.org/floydpink/autojump) DESCRIPTION -----------