netstack.js 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/netstack.js +2 -2
  2. package/package.json +1 -1
package/netstack.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * netStack v2.1.1
2
+ * netStack v2.1.2
3
3
  * A simple and easy JavaScript library for highlighting .NET stack traces
4
4
  * License: Apache 2
5
5
  * Author: https://elmah.io
@@ -141,7 +141,7 @@
141
141
 
142
142
  netStack.prototype.init = function() {
143
143
  // 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
145
145
  sanitizedStack = stacktrace.replace(/</g, '&lt;').replace(/>/g, '&gt;'),
146
146
  lines = sanitizedStack.split('\n'),
147
147
  lang = '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netstack.js",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "A simple and easy JavaScript library for highlighting .NET stack traces",
5
5
  "main": "netstack.js",
6
6
  "scripts": {