mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
IsVendor: move RE collation to code generation phase
test plan: * go test -run '^TestIsVendor$' github.com/go-enry/go-enry/v2
This commit is contained in:
@ -7,3 +7,6 @@ var VendorMatchers = []regex.EnryRegexp{
|
||||
regex.MustCompile(`{{ $regexp }}`),
|
||||
{{end -}}
|
||||
}
|
||||
|
||||
// FastVendorMatcher is equivalent to matching any of the VendorMatchers.
|
||||
var FastVendorMatcher = regex.MustCompile(`{{ optimize . }}`)
|
Reference in New Issue
Block a user