Skip to content

Commit

Permalink
fixing regular expression for specFileExt to use an OR
Browse files Browse the repository at this point in the history
  • Loading branch information
jmreidy authored and indexzero committed Nov 25, 2011
1 parent e7fbdb4 commit f77e4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ try {
require.registerExtension('.coffee', function (content) { return coffee.compile(content) });
}
fileExt = /\.(js|coffee)$/;
specFileExt = /[.-_](test|spec)\.(js|coffee)$/;
specFileExt = /[.(-|_)](test|spec)\.(js|coffee)$/;
} catch (_) {
fileExt = /\.js$/;
specFileExt = /[.-_](test|spec)\.js$/;
specFileExt = /[.(-|_)](test|spec)\.js$/;
}

var inspect = require('eyes').inspector({
Expand Down

0 comments on commit f77e4bd

Please sign in to comment.