From d9ab2f6b49b035a724fbeaea4c38f19d4ecc5996 Mon Sep 17 00:00:00 2001 From: Dirk Wallenstein Date: Mon, 17 Jan 2011 00:40:43 +0000 Subject: parser: Account for mail client line wrapping in pull requests If a mail client wraps the line with the sha, there won't necessarily be a space after 'commit'. Signed-off-by: Dirk Wallenstein Signed-off-by: Jeremy Kerr --- apps/patchwork/bin/parsemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/patchwork/bin/parsemail.py b/apps/patchwork/bin/parsemail.py index 0a9daf5..1b73169 100755 --- a/apps/patchwork/bin/parsemail.py +++ b/apps/patchwork/bin/parsemail.py @@ -136,7 +136,7 @@ def mail_headers(mail): for (k, v) in mail.items()]) def find_pull_request(content): - git_re = re.compile('^The following changes since commit .*' + + git_re = re.compile('^The following changes since commit.*' + '^are available in the git repository at:\n' '^\s*(git://[^\n]+)$', re.DOTALL | re.MULTILINE) -- cgit v1.2.3