]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/parser.py
parser: allow words starting with "diff" at beginning of line
[patchwork] / apps / patchwork / parser.py
index 2b5e9a093c478756d65ef001cdb59e48eb0af0c5..f4605668e67a78f9f7cbd1a5e4018251ba2caf17 100644 (file)
@@ -68,7 +68,7 @@ def parse_patch(text):
         line += '\n'
 
         if state == 0:
-            if line.startswith('diff') or line.startswith('===') \
+            if line.startswith('diff ') or line.startswith('===') \
                     or line.startswith('Index: '):
                 state = 1
                 buf += line