mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	* Fix validate() function to handle errors in embedded anon structs * Implement webhook branch filter See #2025, #3998.
		
			
				
	
	
		
			15 lines
		
	
	
		
			241 B
		
	
	
	
		
			Go
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			15 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)
 | |
| }
 |