add _column detection
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -100,6 +100,9 @@ func csvHasHeader(inputFile, delimiter string) (hasHeader bool, err error) {
|
|||||||
if slices.Contains(firstRow, knownHeader) {
|
if slices.Contains(firstRow, knownHeader) {
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
if slices.Contains(firstRow, "_"+knownHeader) {
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user