check: fix for searching image:, brut: in header

This commit is contained in:
Cyrille L 2022-12-26 15:55:00 +01:00
parent c1bf6c6b15
commit 49fe9bcc91
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ def check_content(post_bottom):
tag_id = line.rsplit(':', 1)[1].rsplit(' ')[0] tag_id = line.rsplit(':', 1)[1].rsplit(' ')[0]
htag = tag[1: len(tag)] 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 htag, tag_id, htag, tag_id
), article_header): ), article_header):
tyto.exiting("10", "%s %s"%(htag, tag_id), True) tyto.exiting("10", "%s %s"%(htag, tag_id), True)