From 31ff39d0c0751ac144bb42babaf766be09039615 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Sun, 29 Dec 2024 06:03:41 +0100 Subject: [PATCH] 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. --- licenser.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/licenser.go b/licenser.go index 51d01df..08983c8 100644 --- a/licenser.go +++ b/licenser.go @@ -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