mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-13 23:12:24 +00:00
15bb13117f
Instead of use a command to change imports before build, using a build tag to generate the correct binary. This will allow applications to compile enry using oniguruma with less troubles. Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
18 lines
248 B
Go
18 lines
248 B
Go
// +build oniguruma
|
|
|
|
package regex
|
|
|
|
import (
|
|
"github.com/moovweb/rubex"
|
|
)
|
|
|
|
type EnryRegexp = *rubex.Regexp
|
|
|
|
func MustCompile(str string) EnryRegexp {
|
|
return rubex.MustCompile(str)
|
|
}
|
|
|
|
func QuoteMeta(s string) string {
|
|
return rubex.QuoteMeta(s)
|
|
}
|