From f0fe6901591f0be6359cb759a08a5982d8f8122a Mon Sep 17 00:00:00 2001 From: Jesse Wattenbarger Date: Mon, 20 Jan 2014 14:16:48 -0500 Subject: [PATCH] Fix loadFiles to allow multiple periods in file names. This give slightly better file handling to loadFiles. --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 010d6f8..36107f3 100644 --- a/main.js +++ b/main.js @@ -70,7 +70,7 @@ function loadFiles(dir, options) { listings.forEach(function (listing) { var file = path.join(dir, listing) - , prop = listing.split('.')[0] // probably want regexp or something more robust + , prop = listing.split('.').slice(0, -1).join('.') // probably want regexp or something more robust , stat = fs.statSync(file); if (stat.isFile()) {