X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/ff42cedd45f18681498c5e380329cdaff2cecf0d..dfeeba67c784985055ea963558d6fb65824971f5:/stgit/commands/imprt.py?ds=sidebyside 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: