Skip to content
Browse files

Fix error in the case where a frame has a location of [object Object]…

…, bump version
  • Loading branch information...
1 parent 4f4cccb commit 6b3325b8d2ae6e21f7c67f92bb394c3ca39a54dd @chrisdickinson committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 trace.js
View
2 package.json
@@ -2,7 +2,7 @@
"author": "Chris Dickinson <chris@neversaw.us> (http://neversaw.us/)",
"name": "tracejs",
"description": "Expand Error.stack traces into usable objects providing context and highlighting",
- "version": "0.1.1",
+ "version": "0.1.2",
"homepage": "http://github.com/chrisdickinson/tracejs/",
"repository": {
"type": "git",
View
2 trace.js
@@ -65,7 +65,7 @@ var colors = {
Color.stack = [colors.off];
-var err_re1 = / at ([^\s]+) \(([\w\d\._\-\/]+):(\d+):(\d+)\)/,
+var err_re1 = / at (.*?) \(([\w\d\._\-\/]+):(\d+):(\d+)\)/,
err_re2 = / at ([^:]+):(\d+):(\d+)/;
var Trace = function(first_line, frames, original_error) {

0 comments on commit 6b3325b

Please sign in to comment.
Something went wrong with that request. Please try again.