Skip to content

Commit 34d1366

Browse files
author
Bill Long
committed
Compare against undefined not empty string
1 parent bb5d262 commit 34d1366

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

angular-rich-text-diff.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ var AngularRichTextDiff;
113113
continue;
114114
}
115115
var tagString = this.tagMap[diffableString[x]];
116-
if (tagString === '') {
116+
if (tagString === undefined) {
117117
// We somehow have a character that is above our range but didn't map
118118
// Do we need to add an upper bound or change the range?
119119
htmlString += diffableString[x];

angular-rich-text-diff.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ module AngularRichTextDiff {
137137
}
138138

139139
var tagString = this.tagMap[diffableString[x]];
140-
if (tagString === '') {
140+
if (tagString === undefined) {
141141
// We somehow have a character that is above our range but didn't map
142142
// Do we need to add an upper bound or change the range?
143143
htmlString += diffableString[x];

0 commit comments

Comments
 (0)