Skip to content

Commit 53ffcbd

Browse files
authored
feat(structuredPatch): Pass options to diffLines
Simply allow the user to use diffLines options with the structuredPatch function
1 parent 870aa15 commit 53ffcbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patch/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHea
55
options = { context: 4 };
66
}
77

8-
const diff = diffLines(oldStr, newStr);
8+
const diff = diffLines(oldStr, newStr, options);
99
diff.push({value: '', lines: []}); // Append an empty value to make cleanup easier
1010

1111
function contextLines(lines) {

0 commit comments

Comments
 (0)