sync to the latest github/linguist v7.9.0

This commit is contained in:
Lauris BH
2020-03-21 21:16:52 +02:00
parent fa1c6f39b5
commit 9030d3671b
30 changed files with 52041 additions and 30895 deletions

View File

@ -27,12 +27,12 @@ var ContentHeuristics = map[string]*Heuristics{
{{- else if eq .Op "Or" -}}
rule.Or(
{{ template "Languages" .Langs -}}
regexp.MustCompile(`{{ .Pattern }}`),
regexp.MustCompile({{ .Pattern | stringVal }}),
),
{{- else if eq .Op "Not" -}}
rule.Not(
{{ template "Languages" .Langs -}}
regexp.MustCompile(`{{ .Pattern }}`),
regexp.MustCompile({{ .Pattern | stringVal }}),
),
{{- else if eq .Op "Always" -}}
rule.Always(