From 10234fef0041e62f71e28e0165017c089fbaac1a Mon Sep 17 00:00:00 2001 From: Aki Van Ness <aki@yosyshq.com> Date: Tue, 2 Aug 2022 08:55:35 -0400 Subject: [PATCH] sby: core: changed how the split for the section header and arguments are done, with a prior strip to remove and extra whitespace --- sbysrc/sby_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbysrc/sby_core.py b/sbysrc/sby_core.py index 677f249..e3cf922 100644 --- a/sbysrc/sby_core.py +++ b/sbysrc/sby_core.py @@ -268,7 +268,7 @@ class SbyConfig: continue match = re.match(r"^\s*\[(.*)\]\s*$", line) if match: - entries = match.group(1).split(" ", maxsplit = 1) + entries = match.group(1).strip().split(maxsplit = 1) if len(entries) == 0: self.error(f"sby file syntax error: Expected section header, got '{line}'") elif len(entries) == 1: