Skip to content

Commit

Permalink
Didn't mean to typecast string, people should only send in strings as…
Browse files Browse the repository at this point in the history
… input

Change-Id: I70c07b78cba5c64802c132426471a021e0e4fadc
  • Loading branch information
creationix committed Dec 27, 2010
1 parent db35317 commit 5f46845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple-mime.js
Expand Up @@ -3,7 +3,7 @@ var types;
module.exports = function setup(defaultMime) {
return function getMime(path) {
path = path.toLowerCase().trim();
var index = String(path).lastIndexOf(".");
var index = path.lastIndexOf(".");
if (index >= 0) {
path = path.substr(index + 1);
}
Expand Down

0 comments on commit 5f46845

Please sign in to comment.