feat!: make license case sensitive again (2caeaed)
BREAKING CHANGE: This feature causes errors for licenses such as BSD-3-Clause, where 'Clause' is case sensitive.
This commit is contained in:
parent
c5a09be93f
commit
1d10172c5d
@ -18,8 +18,7 @@ type Licenser struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (l *Licenser) ParseTemplate() (LicenseTemplate, error) {
|
func (l *Licenser) ParseTemplate() (LicenseTemplate, error) {
|
||||||
licenseID := strings.ToUpper(l.LicenseID)
|
tmplPath := "templates/" + l.LicenseID + ".tmpl"
|
||||||
tmplPath := "templates/" + licenseID + ".tmpl"
|
|
||||||
data, err := TemplatesDir.ReadFile(tmplPath)
|
data, err := TemplatesDir.ReadFile(tmplPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return LicenseTemplate{}, err
|
return LicenseTemplate{}, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user