Convert line to lowercase

This commit is contained in:
perp 2024-07-09 16:51:56 +01:00
parent ee968d0559
commit 85d8146c58
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ func Pipe() []string {
// Ignore empty & commented lines // Ignore empty & commented lines
if line != "" && !strings.HasPrefix(line, "#") { if line != "" && !strings.HasPrefix(line, "#") {
lines = append(lines, line) lines = append(lines, strings.ToLower(line))
} }
} }
} }

View File

@ -28,7 +28,7 @@ func Read(path string) ([]string, error) {
// Ignore empty & commented lines // Ignore empty & commented lines
if line != "" && !strings.HasPrefix(line, "#") { if line != "" && !strings.HasPrefix(line, "#") {
lines = append(lines, line) lines = append(lines, strings.ToLower(line))
} }
} }