Skip to content

Commit

Permalink
Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Long committed Jun 4, 2015
1 parent 4de7b8b commit 9acc16c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions angular-rich-text-diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ var AngularRichTextDiff;
var n = -1;
do {
n++;
} while (diffableString.charCodeAt(n) >= this.unicodeRangeStart);
if (n + 1 >= diffableString.length) {
} while (diffableString.charCodeAt(n) >= this.unicodeRangeStart + 1);
if (n >= diffableString.length) {
return diffableString;
}
var openTag = '';
Expand Down
4 changes: 2 additions & 2 deletions angular-rich-text-diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ module AngularRichTextDiff {
do {
n++;
}
while (diffableString.charCodeAt(n) >= this.unicodeRangeStart);
if (n + 1 >= diffableString.length) {
while (diffableString.charCodeAt(n) >= this.unicodeRangeStart + 1);
if (n >= diffableString.length) {
return diffableString;
}

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-rich-text-diff",
"main": "angular-rich-text-diff.js",
"version": "0.2.1",
"version": "0.2.2",
"authors": [
"Bill Long <[email protected]>"
],
Expand Down

0 comments on commit 9acc16c

Please sign in to comment.