Permalink
Browse files

This regex is getting ridiculous.

  • Loading branch information...
1 parent f2f0e96 commit f3ae631d4c2c50e17c5dec89147ca5accde914ba @mattrobenolt mattrobenolt committed Mar 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/utils.js
View
@@ -103,7 +103,7 @@ module.exports.parseStack = function parseStack(stack, callback) {
var lines = stack.split('\n').slice(1), callbacks=lines.length, frames=[], cache={};
lines.forEach(function(line, index) {
- var data = line.match(/^\s*at (?:(.+?) )?\(?(.+?)(?::(\d+):(\d+))?\)?$/).slice(1),
+ var data = line.match(/^\s*at (?:(.+(?: \[\w\s+\])?) )?\(?(.+?)(?::(\d+):(\d+))?\)?$/).slice(1),
frame = {
filename: data[1],
lineno: ~~data[2]

0 comments on commit f3ae631

Please sign in to comment.