From f8c7409024f0554cfc9d6741426af51608b31039 Mon Sep 17 00:00:00 2001 From: Bob Remeika Date: Sun, 29 Jan 2012 01:59:18 -0800 Subject: [PATCH] Fuckin regex --- src/adapters/node/colors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/node/colors.js b/src/adapters/node/colors.js index 3feb681..e2a27ee 100644 --- a/src/adapters/node/colors.js +++ b/src/adapters/node/colors.js @@ -32,7 +32,7 @@ exports.highlightSpecs = function (stack){ var lines = stack.split("\n"); for (var i = 0, ii = lines.length; i < ii; ++i){ var line = lines[i]; - if (line.match(/[^\w]spec\.js/)){ + if (line.match(/spec\.js/)){ exports.printYellow(line + "\n"); } else { puts(line);