Improve bogus task tags detection
authorClifford Wolf <clifford@clifford.at>
Wed, 12 Sep 2018 11:26:08 +0000 (13:26 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 12 Sep 2018 11:26:08 +0000 (13:26 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
sbysrc/sby.py

index efc8b1a28e82ce3e5cb1e9a0ec8a0ebac58c683d..435119da7ea7c9396770386150b554cb061199d9 100644 (file)
@@ -164,7 +164,7 @@ def read_sbyconfig(sbydata, taskname):
 
         if len(task_tags_all) and not found_task_tag:
             tokens = line.split()
-            if len(tokens) > 0 and tokens[0].endswith(":"):
+            if len(tokens) > 0 and tokens[0][0] == line[0] and tokens[0].endswith(":"):
                 print("ERROR: Invalid task specifier \"%s\"." % tokens[0], file=sys.stderr)
                 sys.exit(1)