]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Improve pull request URL matching regex
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>
Sat, 16 Nov 2019 16:16:00 +0000 (11:16 -0500)
committerStephen Finucane <stephen@that.guru>
Sat, 30 Nov 2019 15:20:08 +0000 (15:20 +0000)
commit86137cc1fa42dabfe715cae669f746fe28b9b234
treeb3d3008d8a26aedad9d3b7330f36d3ef59ef1d11
parent37179103a0ddff805fa1d70aa769b76a2820aa4d
Improve pull request URL matching regex

When git-request-pull output is pasted into a mail client instead of
mailed directly, the ref part of the pull URL may end up wrapped to the
next line.

Example: https://lore.kernel.org/r/294422a4-37b2-def5-5d32-8988f27c3a5b@gmail.com/

This change properly parses URLs both with and without newlines.

Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
(cherry picked from commit 8c229caa71d58e971708ac7ebdb02d6858cd2a4c)
patchwork/parser.py
patchwork/tests/mail/0023-git-pull-request-newline-in-url.mbox [new file with mode: 0644]
patchwork/tests/test_parser.py