Skip to content

Commit

Permalink
Added version lengths to the returned Object. Incremented to 0.1.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Sep 19, 2011
1 parent 755a807 commit 40f05fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ This method always returns an Object. It looks like this:
'lines': Array // Contains the lines of the diff.
,'rangeStart': Number // 0-based start of the diff. This is -1 if there were no different lines.
,'rangeEnd': Number // 0-based end of the diff. This is -1 if there were no different lines.
,'oldLength': Number // The length of `oldVersion` array.
,'newLength': Number // The length of `newVersion` array.
}
````

Expand Down
4 changes: 3 additions & 1 deletion src/dumbdiff.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* dumbdiff.js
* https://github.com/jeremyckahn/dumbdiff
* v 0.1.0
* v 0.1.1
*
* Author: jeremyckahn@gmail.com
* MIT License.
Expand Down Expand Up @@ -82,6 +82,8 @@
'lines': differentLines
,'rangeStart': diffRangeStart
,'rangeEnd': diffRangeEnd
,'oldLength': older.length
,'newLength': newer.length
};
};

Expand Down

0 comments on commit 40f05fb

Please sign in to comment.