From 7d1a05ed58f244640ab59680ac4b836d7ca726c8 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Thu, 1 Sep 2022 08:45:58 -0400 Subject: trailers: ignore non-recognized link trailers If a link contains a '@', we wrongly consider it a person-trailer. Ignore any URL-containing trailers that we don't explicitly recognize. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/b4/__init__.py b/b4/__init__.py index 7439fb8..f54a389 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -1540,6 +1540,9 @@ class LoreMessage: if not mperson and lname not in nonperson: logger.debug('Ignoring %s (not a recognized non-person trailer)', line) continue + if re.search(r'https?://', ovalue): + logger.debug('Ignoring a non-recognized link trailer') + continue extinfo = None mextinfo = re.search(r'(.*\S+)(\s+#[^#]+)$', ovalue) -- cgit v1.2.3