Bugtracker: Adapt CGit parsing to upstream bot changes.

This commit is contained in:
Krytarik Raido 2022-08-01 23:34:04 +02:00
parent 9a06be1795
commit 4dae298cc2
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import supybot
import supybot.world as world
from importlib import reload
__version__ = "5.3.0"
__version__ = "5.4.0"
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
__contributors__ = {
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],

View File

@ -631,7 +631,7 @@ class CGit(IBugtracker):
match = cgitre.search(bugdata)
if match:
bugid = match.group('hash')[:7]
title = utils.web.htmlToText(match.group('subj'))
title = utils.web.htmlToText(match.group('subj'), tagReplace=' ')
title = re.sub(r'\s+', ' ', title)
product = match.group('repo')
return (bugid, product, title, '', '', '', url, [], [])