From 7c02f338c0e6386b322b520c0805a095a0fa2aa1 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Sat, 17 Sep 2005 08:53:58 +0100 Subject: [PATCH 1/1] Ignore the case on the PATCH name when importing Signed-off-by: Catalin Marinas --- stgit/commands/imprt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py index 6baf426..c956c91 100644 --- a/stgit/commands/imprt.py +++ b/stgit/commands/imprt.py @@ -100,7 +100,8 @@ def __parse_mail(filename = None): # remove the '[*PATCH*]' expression in the subject if descr: - descr = re.findall('^(\[[^\s]*PATCH.*?\])?\s*(.*)$', descr)[0][1] + descr = re.findall('^(\[[^\s]*[Pp][Aa][Tt][Cc][Hh].*?\])?\s*(.*)$', + descr)[0][1] descr += '\n\n' else: raise CmdException, 'Subject: line not found' -- 2.11.0