From 49fe9bcc91d4c4c7bf8a6077700c2c9146b5dd43 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Mon, 26 Dec 2022 15:55:00 +0100 Subject: [PATCH] check: fix for searching image:, brut: in header --- src/var/lib/tyto/program/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/var/lib/tyto/program/check.py b/src/var/lib/tyto/program/check.py index 3eaccf3..1a1b305 100644 --- a/src/var/lib/tyto/program/check.py +++ b/src/var/lib/tyto/program/check.py @@ -535,7 +535,7 @@ def check_content(post_bottom): tag_id = line.rsplit(':', 1)[1].rsplit(' ')[0] htag = tag[1: len(tag)] - if not re.search(r'%s\s+\b%s\b|%s\b%s\b'%( + if not re.search(r'^%s\s+\b%s\b|%s\b%s\b'%( htag, tag_id, htag, tag_id ), article_header): tyto.exiting("10", "%s %s"%(htag, tag_id), True)