X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/99c529152847b7e20e48dc477925e315918eed5d..681f805ef4688c7ea450f5e72a15dad818809734:/stgit/commands/imprt.py diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py index 9c97498..cc160cc 100644 --- a/stgit/commands/imprt.py +++ b/stgit/commands/imprt.py @@ -166,7 +166,7 @@ def __parse_mail(msg): # remove the '[*PATCH*]' expression in the subject if descr: - descr = re.findall('^(\[[^\s]*[Pp][Aa][Tt][Cc][Hh].*?\])?\s*(.*)$', + descr = re.findall('^(\[.*?[Pp][Aa][Tt][Cc][Hh].*?\])?\s*(.*)$', descr)[0][1] descr += '\n\n' else: