Permalink
Browse files

Fix a bad regular expression.

  • Loading branch information...
creationix committed Feb 21, 2010
1 parent f113b8a commit 49b8524db471e2f21cf4a1f651c81087da5acf36
Showing with 1 addition and 1 deletion.
  1. +1 −1 build.js
View
@@ -62,7 +62,7 @@ function process_folder(path) { return function (callback, errback) {
callback(pairs.reduce(function (obj, el) {
var ext = el[0].match(/[^.]*$/)[0];
var val = Filters[ext] ? Filters[ext](el[1]) : Filters.method_missing(ext, el[1]);
- obj[el[0].match(/([^./]*)[^\/]*$/)[1]] = val;
+ obj[el[0].match(/([^/]*)\.[^\/]*$/)[1]] = val;
return obj;
}, {}));
}, errback);

0 comments on commit 49b8524

Please sign in to comment.