We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12b2ee9 commit 8c50a59Copy full SHA for 8c50a59
src/ui/js/diff2html-ui.js
@@ -162,7 +162,6 @@
162
163
164
Diff2HtmlUI.prototype._getSelectedText = function() {
165
- var table = $('.d2h-diff-table');
166
var sel = window.getSelection();
167
var range = sel.getRangeAt(0);
168
var doc = range.cloneContents();
@@ -174,7 +173,7 @@
174
173
text = doc.textContent;
175
} else {
176
[].forEach.call(nodes, function(tr, i) {
177
- var td = tr.cells[tr.cells.length == 1 ? 0 : idx];
+ var td = tr.cells[tr.cells.length === 1 ? 0 : idx];
178
text += (i ? '\n' : '') + td.textContent.replace(/(?:\r\n|\r|\n)/g, '');
179
});
180
}
0 commit comments