database entries can be commented out with a leading # character

This commit is contained in:
JetSetIlly 2023-02-18 18:38:50 +00:00
parent 290b2c8500
commit f7f835b4b7

View file

@ -179,6 +179,11 @@ func (db *Session) readDBFile() error {
continue
}
// comment line
if strings.HasPrefix(lines[i], "#") {
continue
}
// loop through file until EOF is reached
fields := strings.SplitN(lines[i], fieldSep, numLeaderFields+1)