mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
ede9e478fe
test plan: * go test -run '^TestIsVendor$' github.com/go-enry/go-enry/v2
12 lines
313 B
Cheetah
12 lines
313 B
Cheetah
package data
|
|
|
|
import "github.com/go-enry/go-enry/v2/regex"
|
|
|
|
var VendorMatchers = []regex.EnryRegexp{
|
|
{{range $regexp := . -}}
|
|
regex.MustCompile(`{{ $regexp }}`),
|
|
{{end -}}
|
|
}
|
|
|
|
// FastVendorMatcher is equivalent to matching any of the VendorMatchers.
|
|
var FastVendorMatcher = regex.MustCompile(`{{ optimize . }}`) |