From 7037e40b79bec9e64c105a70d70db88832b506de Mon Sep 17 00:00:00 2001 From: filip Date: Wed, 9 Oct 2024 13:58:03 +0200 Subject: [PATCH] Added test for resx exclusion and fixed bug --- internal/fingerprint/exclusion.go | 2 +- internal/fingerprint/testdata/fingerprinter/something.resx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 internal/fingerprint/testdata/fingerprinter/something.resx diff --git a/internal/fingerprint/exclusion.go b/internal/fingerprint/exclusion.go index 3d00f7b0..386b074b 100644 --- a/internal/fingerprint/exclusion.go +++ b/internal/fingerprint/exclusion.go @@ -73,7 +73,7 @@ func DefaultExclusionsFingerprint() []string { for _, excluded_extension := range defaultFingerprintExclusions.Extensions { default_exclusions = append(default_exclusions, "**/*"+excluded_extension) } - for _, excluded_ending := range defaultFingerprintExclusions.Extensions { + for _, excluded_ending := range defaultFingerprintExclusions.Endings { default_exclusions = append(default_exclusions, "**/*"+excluded_ending) } diff --git a/internal/fingerprint/testdata/fingerprinter/something.resx b/internal/fingerprint/testdata/fingerprinter/something.resx new file mode 100644 index 00000000..c25e049e --- /dev/null +++ b/internal/fingerprint/testdata/fingerprinter/something.resx @@ -0,0 +1 @@ +Some text to make it larger than a few bytesSome text to make it larger than a few bytesSome text to make it larger than a few bytesSome text to make it larger than a few bytesSome text to make it larger than a few bytes