]> 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 11:50:47 +0000 (11:50 +0000)
commit8c229caa71d58e971708ac7ebdb02d6858cd2a4c
tree51727bacde7892dafa680de091f083cf50e36d56
parent239fbd2ca1bf140bc61fdee922944624b23c812c
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>
patchwork/parser.py
patchwork/tests/mail/0023-git-pull-request-newline-in-url.mbox [new file with mode: 0644]
patchwork/tests/test_parser.py