forked from mirror/glob
wip
This commit is contained in:
parent
e4652bc1f4
commit
9cd1b6671f
|
@ -152,6 +152,8 @@ func TestGlob(t *testing.T) {
|
||||||
glob(true, "*//{,*.}example.com", "http://example.com"),
|
glob(true, "*//{,*.}example.com", "http://example.com"),
|
||||||
glob(false, "*//{,*.}example.com", "http://example.com.net"),
|
glob(false, "*//{,*.}example.com", "http://example.com.net"),
|
||||||
|
|
||||||
|
glob(true, "{a*,b}c", "abc", '.'),
|
||||||
|
|
||||||
glob(true, pattern_all, fixture_all_match),
|
glob(true, pattern_all, fixture_all_match),
|
||||||
glob(false, pattern_all, fixture_all_mismatch),
|
glob(false, pattern_all, fixture_all_mismatch),
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package match
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"gopkg.in/readline.v1/runes"
|
"github.com/gobwas/glob/util/runes"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Optimize(m Matcher) Matcher {
|
func Optimize(m Matcher) Matcher {
|
||||||
|
|
Loading…
Reference in New Issue