whatthepatch icon indicating copy to clipboard operation
whatthepatch copied to clipboard

fix: incorrect regular expression matching diffcmd

Open jingfelix opened this issue 1 year ago • 0 comments

current diffcmd_header: ^diff.* (.+) (.+)$ fixed diffcmd_header: ^diff .* (.+) (.+)$

Using the old diffcmd_header may result in lines starting with words like "different" being incorrectly matched as a diff header. Fixing this by adding a blank space.

example: this commit in Linux kernel

image

jingfelix avatar Sep 14 '24 08:09 jingfelix