mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-08-05 07:45:33 +00:00
data: replace substring package with regex package
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
package data
|
||||
|
||||
import "gopkg.in/toqueteos/substring.v1"
|
||||
import "github.com/go-enry/go-enry/v2/regex"
|
||||
|
||||
var DocumentationMatchers = substring.Or(
|
||||
var DocumentationMatchers = []regex.EnryRegexp{
|
||||
{{range $regexp := . -}}
|
||||
substring.Regexp(`{{ $regexp }}`),
|
||||
regex.MustCompile(`{{ $regexp }}`),
|
||||
{{end -}}
|
||||
)
|
||||
}
|
||||
|
||||
|
@@ -1,9 +1,9 @@
|
||||
package data
|
||||
|
||||
import "gopkg.in/toqueteos/substring.v1"
|
||||
import "github.com/go-enry/go-enry/v2/regex"
|
||||
|
||||
var VendorMatchers = substring.Or(
|
||||
var VendorMatchers = []regex.EnryRegexp{
|
||||
{{range $regexp := . -}}
|
||||
substring.Regexp(`{{ $regexp }}`),
|
||||
regex.MustCompile(`{{ $regexp }}`),
|
||||
{{end -}}
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user