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