cfg: allow trailing colon on category headers

This commit is contained in:
ed 2023-05-12 21:01:34 +00:00
parent d979c47f50
commit db51f1b063

View file

@ -841,6 +841,9 @@ class AuthSrv(object):
if not ln.split("#")[0].strip(): if not ln.split("#")[0].strip():
continue continue
if re.match(r"^\[.*\]:$", ln):
ln = ln[:-1]
subsection = ln in (catx, catf) subsection = ln in (catx, catf)
if ln.startswith("[") or subsection: if ln.startswith("[") or subsection:
self._e() self._e()