From eb4d50d9422ce11448d04aa4fedffe3ad0c9cc12 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Sat, 29 Jan 2011 14:44:49 +0000 Subject: [PATCH] support '.' in filenames --- lib/assert/error.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/assert/error.js b/lib/assert/error.js index b4829bd..af9885c 100644 --- a/lib/assert/error.js +++ b/lib/assert/error.js @@ -3,7 +3,7 @@ var inspect = require('vows/console').inspect; require('assert').AssertionError.prototype.toString = function () { var that = this, - source = this.stack.match(/([a-zA-Z0-9_-]+\.js)(:\d+):\d+/); + source = this.stack.match(/([a-zA-Z0-9._-]+\.js)(:\d+):\d+/); function parse(str) { return str.replace(/{actual}/g, inspect(that.actual)).