forked from mirror/glob
fix
This commit is contained in:
parent
205c640a14
commit
be21acf93c
|
@ -36,5 +36,5 @@ func (self Any) Len() int {
|
|||
}
|
||||
|
||||
func (self Any) String() string {
|
||||
return fmt.Sprintf("<any:![%s]>", self.Separators)
|
||||
return fmt.Sprintf("<any:![%s]>", string(self.Separators))
|
||||
}
|
||||
|
|
|
@ -41,5 +41,10 @@ func (self List) String() string {
|
|||
not = "!"
|
||||
}
|
||||
|
||||
return fmt.Sprintf("<list:%s[%s]>", not, self.List)
|
||||
// var list []string
|
||||
// for _, r := range self.List {
|
||||
// list = append(list, string(r))
|
||||
// }
|
||||
|
||||
return fmt.Sprintf("<list:%s[%s]>", not, string(self.List))
|
||||
}
|
||||
|
|
|
@ -43,5 +43,5 @@ func (self Range) String() string {
|
|||
if self.Not {
|
||||
not = "!"
|
||||
}
|
||||
return fmt.Sprintf("<range:%s[%s,%s]>", not, string(self.Lo), string(self.Hi))
|
||||
return fmt.Sprintf("<range:%s[%s-%s]>", not, string(self.Lo), string(self.Hi))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue