0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-21 16:24:39 +01:00
gitea/vendor/github.com/gobwas/glob/syntax/syntax.go
WGH 6ddd3b0b47 Implement webhook branch filter (#7791)
* Fix validate() function to handle errors in embedded anon structs

* Implement webhook branch filter

See #2025, #3998.
2019-09-09 08:48:21 +03:00

14 lines
241 B
Go
Vendored

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)
}