mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-12-01 06:16:09 +01:00
6ddd3b0b47
* Fix validate() function to handle errors in embedded anon structs * Implement webhook branch filter See #2025, #3998.
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)
|
|
}
|