Skip to content

Commit

Permalink
Minor tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason LaPorte committed Jul 25, 2013
1 parent b9043bc commit 2468f50
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
var fs = require("fs"),
path = require("path"),
regex = /^(.+)\.js$/;
var fs = require("fs"),
path = require("path");

fs.readdirSync(path.join(__dirname, "lib/lang")).forEach(function(pathname) {
var match = regex.exec(pathname);
var match = /^([^\.].*)\.js$/.exec(pathname);

if(match)
exports[match[1]] = require("./lib/lang/" + pathname);
Expand Down

0 comments on commit 2468f50

Please sign in to comment.