Migrate to go-enry new version (#10906)

This commit is contained in:
Lauris BH
2020-04-15 20:40:39 +03:00
committed by GitHub
parent 7a67bcc204
commit 4dc62dadce
65 changed files with 111849 additions and 102276 deletions

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