Skip to content

Commit e14e531

Browse files
committed
update netstack.js
1 parent 56d1687 commit e14e531

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/netstack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* netStack v2.1.1
2+
* netStack v2.1.2
33
* A simple and easy JavaScript library for highlighting .NET stack traces
44
* License: Apache 2
55
* Author: https://elmah.io
@@ -141,7 +141,7 @@
141141

142142
netStack.prototype.init = function() {
143143
// Get the stacktrace, sanitize it, and split it into lines
144-
var stacktrace = this.element.textContent,
144+
var stacktrace = this.element.textContent.trim(), // trim empty spaces and lines before and after stacktrace
145145
sanitizedStack = stacktrace.replace(/</g, '&lt;').replace(/>/g, '&gt;'),
146146
lines = sanitizedStack.split('\n'),
147147
lang = '',

0 commit comments

Comments
 (0)