From 9cd1b6671fd4e1d8ba661afd4015f2e733e1b4f8 Mon Sep 17 00:00:00 2001 From: Sergey Kamardin Date: Tue, 2 Oct 2018 22:02:43 +0300 Subject: [PATCH] wip --- glob_test.go | 2 ++ match/optimize.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/glob_test.go b/glob_test.go index b012fc8..c93d263 100644 --- a/glob_test.go +++ b/glob_test.go @@ -152,6 +152,8 @@ func TestGlob(t *testing.T) { glob(true, "*//{,*.}example.com", "http://example.com"), glob(false, "*//{,*.}example.com", "http://example.com.net"), + glob(true, "{a*,b}c", "abc", '.'), + glob(true, pattern_all, fixture_all_match), glob(false, pattern_all, fixture_all_mismatch), diff --git a/match/optimize.go b/match/optimize.go index beb0271..a07298f 100644 --- a/match/optimize.go +++ b/match/optimize.go @@ -3,7 +3,7 @@ package match import ( "fmt" - "gopkg.in/readline.v1/runes" + "github.com/gobwas/glob/util/runes" ) func Optimize(m Matcher) Matcher {