]> granicus.if.org Git - python/commitdiff
minor fix to mime header regex --Sjoerd
authorGuido van Rossum <guido@python.org>
Tue, 28 May 1996 19:52:40 +0000 (19:52 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 28 May 1996 19:52:40 +0000 (19:52 +0000)
Lib/mimify.py

index 15821997f4ed58bad3659bae743f5569fe8b474f..3f41de4cc834fa4f8a372cca552be0a799992b85 100755 (executable)
@@ -239,7 +239,7 @@ def mime_encode(line, header):
                line = line[i:]
        return newline + line
 
-mime_header = regex.compile('\\([ \t(]\\)\\([-a-zA-Z0-9_+]*[\240-\377][-a-zA-Z0-9_+\240-\377]*\\)\\([ \t)]\\|$\\)')
+mime_header = regex.compile('\\([ \t(]\\|^\\)\\([-a-zA-Z0-9_+]*[\240-\377][-a-zA-Z0-9_+\240-\377]*\\)\\([ \t)]\\|$\\)')
 
 def mime_encode_header(line):
        '''Code a single header line as quoted-printable.'''