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 b7dea2c commit 73b139cCopy full SHA for 73b139c
netstack.js
@@ -141,7 +141,7 @@
141
142
netStack.prototype.init = function() {
143
// Get the stacktrace, sanitize it, and split it into lines
144
- var stacktrace = this.element.textContent,
+ var stacktrace = this.element.textContent.trim(), // trim empty spaces and lines before and after stacktrace
145
sanitizedStack = stacktrace.replace(/</g, '<').replace(/>/g, '>'),
146
lines = sanitizedStack.split('\n'),
147
lang = '',
@@ -201,9 +201,6 @@
201
var langContor = 0;
202
}
203
204
- // Trim empty lines
205
- lines = lines.filter(line => line.trim() !== '');
206
-
207
for (var i = 0; i < lines.length; ++i) {
208
var li = lines[i],
209
hli = new RegExp('(\\S*)' + selectedLanguage.at + ' .*\\)'),
0 commit comments