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), ]