feat!: make license case specific again (dc2cb74)
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
33e0209339
commit
3a9c5e4e0b
@ -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