Skip to content

Commit

Permalink
support '.' in filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jan 29, 2011
1 parent 3030206 commit eb4d50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assert/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)).
Expand Down

0 comments on commit eb4d50d

Please sign in to comment.