diffparser icon indicating copy to clipboard operation
diffparser copied to clipboard

parse failed with comment lines contain line start with 3 '-'

Open nemax opened this issue 2 years ago • 0 comments

image https://user-images.githubusercontent.com/1342652/224879030-fc06971f-4dcb-442c-a8a1-1348bf4dac9e.png

since the source contains a line "--------------------------------------" in comment as a segment line, the isSourceLine function just ignore it, i wonder if the condition should be changed as below

if l := len(line); l == 0 || (l >= 3 && (line[:4] == "--- " || line[:4] == "+++ ")) {

nemax avatar Mar 14 '23 06:03 nemax