Bugtracker: Adapt CGit parsing to upstream bot changes.
This commit is contained in:
parent
9a06be1795
commit
4dae298cc2
|
@ -23,7 +23,7 @@ import supybot
|
||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
from importlib import reload
|
from importlib import reload
|
||||||
|
|
||||||
__version__ = "5.3.0"
|
__version__ = "5.4.0"
|
||||||
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
||||||
__contributors__ = {
|
__contributors__ = {
|
||||||
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
||||||
|
|
|
@ -631,7 +631,7 @@ class CGit(IBugtracker):
|
||||||
match = cgitre.search(bugdata)
|
match = cgitre.search(bugdata)
|
||||||
if match:
|
if match:
|
||||||
bugid = match.group('hash')[:7]
|
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)
|
title = re.sub(r'\s+', ' ', title)
|
||||||
product = match.group('repo')
|
product = match.group('repo')
|
||||||
return (bugid, product, title, '', '', '', url, [], [])
|
return (bugid, product, title, '', '', '', url, [], [])
|
||||||
|
|
Loading…
Reference in New Issue