From ae845835d6220331f4f608b72305c17b01d8fa45 Mon Sep 17 00:00:00 2001 From: Cameron Youell Date: Mon, 17 Jul 2023 21:36:31 +1000 Subject: [PATCH] Meta: Dont finish lines with only one character in `lint-ports.py` --- Meta/lint-ports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/lint-ports.py b/Meta/lint-ports.py index 3b28722b04b..4fb39e2eff7 100755 --- a/Meta/lint-ports.py +++ b/Meta/lint-ports.py @@ -144,7 +144,7 @@ def get_script_props(dir: str, script_name: str, props: dict, depth: int = 0, ma continue if (value.startswith(('"', "'"))): - if (value.endswith(value[0])): + if (value.endswith(value[0]) and len(value) > 1): value = value[1:-1] else: buffer += "\n"