aboutsummaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-12 20:26:01 +0700
committerShulhan <ms@kilabit.info>2026-01-12 21:23:09 +0700
commitbf35b0b8ab23f07c491e1c6b97c90b772942b7b7 (patch)
tree47ede156fea419bf58fec10723645405f033fa62 /file.go
parent1d6f8cfc60be1ada414ac1a9ce8eb6f61a527a0f (diff)
downloadspdxconv-bf35b0b8ab23f07c491e1c6b97c90b772942b7b7.tar.xz
all: remove prefix config from struct matchCopyright and matchLicense
Diffstat (limited to 'file.go')
-rw-r--r--file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.go b/file.go
index 75842dd..4e8d565 100644
--- a/file.go
+++ b/file.go
@@ -35,7 +35,7 @@ var reCopyrightText = regexp.MustCompile(`^(//+|#+|/\*+|<!--+)?\s?SPDX-FileCopyr
// REUSE-IgnoreEnd
type file struct {
- matchLicense *configMatchLicense
+ matchLicense *matchLicense
path string
@@ -357,7 +357,7 @@ func (f *file) applyCopyrightText(conv *SPDXConv) (err error) {
}
// Verify that the line actually match with one of
// match-copyright pattern.
- var cmc *configMatchCopyright
+ var cmc *matchCopyright
for _, cmc = range conv.cfg.MatchCopyright {
if cmc.match(string(line)) {
f.copyrightYear = cmc.year