Convert line to lowercase
This commit is contained in:
parent
ee968d0559
commit
85d8146c58
@ -26,7 +26,7 @@ func Pipe() []string {
|
||||
|
||||
// Ignore empty & commented lines
|
||||
if line != "" && !strings.HasPrefix(line, "#") {
|
||||
lines = append(lines, line)
|
||||
lines = append(lines, strings.ToLower(line))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ func Read(path string) ([]string, error) {
|
||||
|
||||
// Ignore empty & commented lines
|
||||
if line != "" && !strings.HasPrefix(line, "#") {
|
||||
lines = append(lines, line)
|
||||
lines = append(lines, strings.ToLower(line))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user