From f7f835b4b77c558078865e30cb91130a4c8bee07 Mon Sep 17 00:00:00 2001 From: JetSetIlly Date: Sat, 18 Feb 2023 18:38:50 +0000 Subject: [PATCH] database entries can be commented out with a leading # character --- database/session.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/database/session.go b/database/session.go index 93c73d9e..21530b5e 100644 --- a/database/session.go +++ b/database/session.go @@ -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)