Some slight regexp updates.

This commit is contained in:
Jeremy Fincher 2003-10-04 14:57:05 +00:00
parent 84b7454709
commit d0c7d47de4

View File

@ -175,9 +175,9 @@ class Debian(callbacks.Privmsg, PeriodicFileDownloader):
irc.reply(msg, utils.commaAndify(packages)) irc.reply(msg, utils.commaAndify(packages))
_debreflags = re.DOTALL | re.IGNORECASE _debreflags = re.DOTALL | re.IGNORECASE
_debpkgre = re.compile(r'<a.*>(.*?)</a>', _debreflags) _debpkgre = re.compile(r'<a[^>]+>(.*?)</a>', _debreflags)
_debbrre = re.compile(r'<td align="center">(\S+)\s*</?td>', _debreflags) _debbrre = re.compile(r'<td align="center">(\S+)\s*</?td>', _debreflags)
_debtablere = re.compile(r'<table\s*[^>]*>(.*?)</table>', _debreflags) _debtablere = re.compile(r'<table[^>]*>(.*?)</table>', _debreflags)
_debnumpkgsre = re.compile(r'out of total of (\d+)', _debreflags) _debnumpkgsre = re.compile(r'out of total of (\d+)', _debreflags)
_debBranches = ('stable', 'testing', 'unstable', 'experimental') _debBranches = ('stable', 'testing', 'unstable', 'experimental')
def debversion(self, irc, msg, args): def debversion(self, irc, msg, args):