github.com/mcuadros/enry@v1.7.3/regex/standard.go (about)

     1  // +build !oniguruma
     2  
     3  package regex
     4  
     5  import (
     6  	"regexp"
     7  )
     8  
     9  type EnryRegexp = *regexp.Regexp
    10  
    11  func MustCompile(str string) EnryRegexp {
    12  	return regexp.MustCompile(str)
    13  }
    14  
    15  func QuoteMeta(s string) string {
    16  	return regexp.QuoteMeta(s)
    17  }