Skip to content

Commit 97b6175

Browse files
authored
feat(structuredPatch): Handle default context option
1 parent 2a9df41 commit 97b6175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patch/create.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHea
44
if (!options) {
55
options = {};
66
}
7-
if (!options.context) {
7+
if (typeof options.context === 'undefined') {
88
options.context = 4;
99
}
1010

0 commit comments

Comments
 (0)