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 56d1687 commit e14e531Copy full SHA for e14e531
assets/js/netstack.js
@@ -1,5 +1,5 @@
1
/*!
2
- * netStack v2.1.1
+ * netStack v2.1.2
3
* A simple and easy JavaScript library for highlighting .NET stack traces
4
* License: Apache 2
5
* Author: https://elmah.io
@@ -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 = '',
0 commit comments