mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-01 08:47:40 -04:00
18 lines
234 B
Go
18 lines
234 B
Go
|
// +build !oniguruma
|
||
|
|
||
|
package regex
|
||
|
|
||
|
import (
|
||
|
"regexp"
|
||
|
)
|
||
|
|
||
|
type EnryRegexp = *regexp.Regexp
|
||
|
|
||
|
func MustCompile(str string) EnryRegexp {
|
||
|
return regexp.MustCompile(str)
|
||
|
}
|
||
|
|
||
|
func QuoteMeta(s string) string {
|
||
|
return regexp.QuoteMeta(s)
|
||
|
}
|