mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-02-08 21:10:13 +00:00
Use https://github.com/gobwas/glob as glob engine Fix #373 Signed-off-by: Guilhem Lettron <guilhem@barpilot.io>
15 lines
241 B
Go
15 lines
241 B
Go
package syntax
|
|
|
|
import (
|
|
"github.com/gobwas/glob/syntax/ast"
|
|
"github.com/gobwas/glob/syntax/lexer"
|
|
)
|
|
|
|
func Parse(s string) (*ast.Node, error) {
|
|
return ast.Parse(lexer.NewLexer(s))
|
|
}
|
|
|
|
func Special(b byte) bool {
|
|
return lexer.Special(b)
|
|
}
|