From 9822e3bb00df515a1f579400d88cf730740f1008 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 17 2014 09:45:40 +0000 Subject: Try adjusting the regex a little more --- diff --git a/progit/hooks/files/progit_hook.py b/progit/hooks/files/progit_hook.py index 795bd50..042f6cd 100644 --- a/progit/hooks/files/progit_hook.py +++ b/progit/hooks/files/progit_hook.py @@ -18,10 +18,10 @@ if 'PROGIT_CONFIG' not in os.environ \ FIXES = [ - re.compile('fixe[sd]?:?\s?#(\d+)', re.I), - re.compile('.*\s+fixe[sd]?:?\s?#(\d+)', re.I), - re.compile('fixe[sd]?:?\s?https?://.*/(\w+)/issue/(\d+)', re.I), - re.compile('.*\s+fixe[sd]?:?\s?https?://.*/(\w+)/issue/(\d+)', re.I), + re.compile('fixe?[sd]?:?\s?#(\d+)', re.I), + re.compile('.*\s+fixe?[sd]?:?\s?#(\d+)', re.I), + re.compile('fixe?[sd]?:?\s?https?://.*/(\w+)/issue/(\d+)', re.I), + re.compile('.*\s+fixe?[sd]?:?\s?https?://.*/(\w+)/issue/(\d+)', re.I), ] RELATES = [