2018-08-28 17:27:18 +02:00
|
|
|
// +build oniguruma
|
|
|
|
|
|
|
|
package regex
|
|
|
|
|
|
|
|
import (
|
2020-03-19 17:31:29 +01:00
|
|
|
rubex "github.com/go-enry/go-oniguruma"
|
2018-08-28 17:27:18 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type EnryRegexp = *rubex.Regexp
|
|
|
|
|
|
|
|
func MustCompile(str string) EnryRegexp {
|
2019-05-08 15:31:55 +02:00
|
|
|
return rubex.MustCompileASCII(str)
|
2018-08-28 17:27:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func QuoteMeta(s string) string {
|
|
|
|
return rubex.QuoteMeta(s)
|
|
|
|
}
|