Skip to content

Commit

Permalink
feat!: make license case specific again (2caeaed)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This feature causes errors for licenses such
as BSD-3-Clause, where 'Clause' part is case specific.
  • Loading branch information
wzykubek committed Dec 29, 2024
1 parent 33e0209 commit 31ff39d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions licenser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31ff39d

Please sign in to comment.