Skip to content

Commit eb4d50d

Browse files
committed
support '.' in filenames
1 parent 3030206 commit eb4d50d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/assert/error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var inspect = require('vows/console').inspect;
33

44
require('assert').AssertionError.prototype.toString = function () {
55
var that = this,
6-
source = this.stack.match(/([a-zA-Z0-9_-]+\.js)(:\d+):\d+/);
6+
source = this.stack.match(/([a-zA-Z0-9._-]+\.js)(:\d+):\d+/);
77

88
function parse(str) {
99
return str.replace(/{actual}/g, inspect(that.actual)).

0 commit comments

Comments
 (0)