remove doubleslash entries from CheckNativeYaml task_action

This commit is contained in:
Robert Kaussow 2021-06-08 09:24:17 +02:00
parent 3e6740d498
commit e74cd668d9
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -31,6 +31,6 @@ class CheckNativeYaml(StandardBase):
continue continue
# strip additional newlines off task[action] # strip additional newlines off task[action]
task_action = bytes(task[action].strip(), "utf-8").decode("utf8", "ignore") task_action = bytes(task[action].strip(), "utf-8").decode("utf8", "ignore")
if task_action.split() != arguments: if list(filter(lambda a: a != "\\", task_action.split())) != arguments:
errors.append(self.Error(task["__line__"], self.helptext)) errors.append(self.Error(task["__line__"], self.helptext))
return self.Result(candidate.path, errors) return self.Result(candidate.path, errors)