mirror of https://github.com/gobwas/glob.git
Rename arg
This commit is contained in:
parent
b809127dcf
commit
3c56fe78a7
4
glob.go
4
glob.go
|
@ -44,8 +44,8 @@ type Glob interface {
|
||||||
// `?` matches any single non-separator character
|
// `?` matches any single non-separator character
|
||||||
// c matches character c (c != `*`, `**`, `?`, `\`)
|
// c matches character c (c != `*`, `**`, `?`, `\`)
|
||||||
// `\` c matches character c
|
// `\` c matches character c
|
||||||
func New(pattern string, d ...string) Glob {
|
func New(pattern string, separators ...string) Glob {
|
||||||
chunks := parse(pattern, nil, strings.Join(d, ""), false)
|
chunks := parse(pattern, nil, strings.Join(separators, ""), false)
|
||||||
|
|
||||||
switch len(chunks) {
|
switch len(chunks) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
Loading…
Reference in New Issue