[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] email2irc: Avoid double spaces in output (eg. "Failed http://example.com/", etc.)

Holger Levsen gitlab at salsa.debian.org
Mon Dec 10 09:39:57 GMT 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
20a4a40a by Chris Lamb at 2018-12-10T09:39:34Z
email2irc: Avoid double spaces in output (eg. "Failed  http://example.com/", etc.)

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/email2irc.py


Changes:

=====================================
bin/email2irc.py
=====================================
@@ -101,6 +101,7 @@ ircmsg = re.sub(r'\?page=changes$', r'', ircmsg)
 ircmsg = re.sub(r'/(console|changes)$', r'', ircmsg)
 ircmsg = re.sub(r'/display/redirect.*$', r'', ircmsg)
 ircmsg = re.sub(r'/$', r'', ircmsg)
+ircmsg = re.sub(r'\s+$', r' ', ircmsg)
 
 print('''
 -----------



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/20a4a40ae5066ae56804235738e45ba7e600e4b7

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/20a4a40ae5066ae56804235738e45ba7e600e4b7
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20181210/7dfa8dde/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list