From 7a29929eb3bd0f89f2fd654405f9680bfd084151 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 3 Nov 2025 13:34:38 +0100 Subject: [PATCH] fix header detection (oops) Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- leak-utils/misc/csv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leak-utils/misc/csv.go b/leak-utils/misc/csv.go index fc71e6c..3ccf5de 100644 --- a/leak-utils/misc/csv.go +++ b/leak-utils/misc/csv.go @@ -97,7 +97,7 @@ func csvHasHeader(inputFile, delimiter string) (hasHeader bool, err error) { knownHeaders := []string{"email", "password", "username", "phone", "lastname", "firstname", "mail", "addresse", "nom", "id"} for _, knownHeader := range knownHeaders { for _, col := range firstRow { - if strings.HasPrefix(col, "_"+knownHeader) || col == knownHeader { + if strings.HasSuffix(col, knownHeader) { return true, nil } }