Try to fix the urls
Some checks failed
Test / build (3.10, ubuntu-22.04, true) (push) Failing after 26s
Test / build (3.10, ubuntu-22.04, false) (push) Failing after 29s
Test / build (3.11, ubuntu-22.04, true) (push) Failing after 6m0s
Test / build (3.12.0, ubuntu-22.04, true) (push) Failing after 5m58s
Test / build (3.6, ubuntu-20.04, false) (push) Failing after 5m14s
Test / build (3.13.0-alpha.6, ubuntu-22.04, false) (push) Failing after 5m29s
Test / build (3.7, ubuntu-22.04, false) (push) Failing after 6m3s
Test / build (3.7, ubuntu-22.04, true) (push) Failing after 6m3s
Test / build (3.8, ubuntu-22.04, true) (push) Failing after 6m8s
Test / build (3.9, ubuntu-22.04, true) (push) Failing after 6m5s
Test / build (pypy-3.10, ubuntu-22.04, false) (push) Failing after 5m39s
Test / build (pypy-3.6, ubuntu-20.04, false) (push) Failing after 6m3s
Test / build (pypy-3.7, ubuntu-22.04, false) (push) Failing after 6m33s
Test / build (pypy-3.9, ubuntu-22.04, true) (push) Failing after 7m28s

This commit is contained in:
Stan 2024-08-22 11:23:04 +02:00
parent fc2cce85ae
commit 7654869723

View File

@ -549,7 +549,7 @@ class RSS(callbacks.Plugin):
# Do it on the last title.
author = entry.get('author', '')
if author != '':
title = entry.get('title', '')
title = kwargs['title']
sanitized_author = u"\u200B".join(list(author))
new_title = re.sub(r"\b" + re.escape(author) + r"\b", sanitized_author, title)
if new_title != title: