Permalink
Browse files

FIX: Retrieve the extension before checking it.

  • Loading branch information...
1 parent b2c4e9a commit 6d3ad1e9440033939e8c013ebd152c9081080cfb @lbdremy committed Feb 2, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/defaults/index.js
View
@@ -82,6 +82,7 @@ var ENUM_INVALID_EXTENSIONS = {
};
function isValidExtension(src){
+ var extension = src.split('.').pop();
var isValid = ENUM_INVALID_EXTENSIONS[extension] === false ? false : true;
return isValid;
}

0 comments on commit 6d3ad1e

Please sign in to comment.