mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
16 lines
411 B
Cheetah
16 lines
411 B
Cheetah
package data
|
|
|
|
import "github.com/go-enry/go-enry/v2/regex"
|
|
|
|
var VendorMatchers = []regex.EnryRegexp{
|
|
{{range $re := . -}}
|
|
{{ if isRE2 $re -}}
|
|
regex.MustCompile({{ $re | stringVal }}),
|
|
{{- else -}}
|
|
regex.MustCompileRuby({{ $re | stringVal }}),
|
|
{{ end }}
|
|
{{end -}}
|
|
}
|
|
|
|
// FastVendorMatcher is equivalent to matching any of the VendorMatchers.
|
|
var FastVendorMatcher = regex.MustCompile(`{{ optimize . }}`) |