mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-18 22:54:17 +09:00
Migrate to go-enry new version (#10906)
This commit is contained in:
17
vendor/github.com/go-enry/go-enry/v2/regex/oniguruma.go
generated
vendored
Normal file
17
vendor/github.com/go-enry/go-enry/v2/regex/oniguruma.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// +build oniguruma
|
||||
|
||||
package regex
|
||||
|
||||
import (
|
||||
rubex "github.com/go-enry/go-oniguruma"
|
||||
)
|
||||
|
||||
type EnryRegexp = *rubex.Regexp
|
||||
|
||||
func MustCompile(str string) EnryRegexp {
|
||||
return rubex.MustCompileASCII(str)
|
||||
}
|
||||
|
||||
func QuoteMeta(s string) string {
|
||||
return rubex.QuoteMeta(s)
|
||||
}
|
Reference in New Issue
Block a user