2017-06-08 10:28:36 +00:00
|
|
|
package data
|
2017-04-07 07:25:49 +00:00
|
|
|
|
2020-04-15 15:27:48 +00:00
|
|
|
import "github.com/go-enry/go-enry/v2/regex"
|
2017-04-07 07:25:49 +00:00
|
|
|
|
2020-04-15 15:27:48 +00:00
|
|
|
var VendorMatchers = []regex.EnryRegexp{
|
2017-04-07 07:25:49 +00:00
|
|
|
{{range $regexp := . -}}
|
2020-04-15 15:27:48 +00:00
|
|
|
regex.MustCompile(`{{ $regexp }}`),
|
2017-04-07 07:25:49 +00:00
|
|
|
{{end -}}
|
2020-04-15 15:27:48 +00:00
|
|
|
}
|
2022-11-21 11:52:56 +00:00
|
|
|
|
|
|
|
// FastVendorMatcher is equivalent to matching any of the VendorMatchers.
|
|
|
|
var FastVendorMatcher = regex.MustCompile(`{{ optimize . }}`)
|