Skip to content

Commit

Permalink
Don't omit first line in debug output when submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Jul 25, 2017
1 parent 9a8ab52 commit 695dd4e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions chrome/content/zotero/xpcom/debug.js
Expand Up @@ -198,11 +198,9 @@ Zotero.Debug = new function () {
if (maxChars) {
output = output.substr(maxChars * -1);
// Cut at two newlines
for (var i=1, len=output.length; i<len; i++) {
if (output[i] == '\n' && output[i-1] == '\n') {
output = output.substr(i + 1);
break;
}
let matches = output.match(/^[\n]*\n\n/);
if (matches) {
output = output.substr(matches[0].length);
}
}

Expand Down

0 comments on commit 695dd4e

Please sign in to comment.