From 7cf68c93f66b7238db59c87ec58c411ab756374b Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 03 2014 09:48:16 +0000 Subject: Again more tweaking to the relates regex Relates to #23 --- diff --git a/progit/hooks/files/progit_hook.py b/progit/hooks/files/progit_hook.py index e92c5a0..81bd30a 100644 --- a/progit/hooks/files/progit_hook.py +++ b/progit/hooks/files/progit_hook.py @@ -27,7 +27,7 @@ FIXES = [ RELATES = [ re.compile('relate[sd]?:?\s?(to)?\s?#(\d+)', re.I), re.compile('.*\s+relate[sd]?:?\s?#(\d+)', re.I), - re.compile('relate[sd]?:?\s?https?://.*/(\w+)/issue/(\d+)', re.I), + re.compile('relate[sd]?:?\s?(to)?\s?https?://.*/(\w+)/issue/(\d+)', re.I), re.compile('.*\s+relate[sd]?:?\s?https?://.*/(\w+)/issue/(\d+)', re.I), ]