diff --git a/lib/file.js b/lib/file.js index 60b835496..92d5e89b8 100644 --- a/lib/file.js +++ b/lib/file.js @@ -220,7 +220,7 @@ var File = Object.derive(function() { this._likes = {}; this.defineLikes(); - if (_.isTextFile(rExt)) { + if (_.isTextFile(ext)) { this._isImage = false; this._isText = true; this.charset = null; @@ -266,7 +266,7 @@ var File = Object.derive(function() { this.isJsonLike = true; break; } - } else if (_.isImageFile(rExt)) { + } else if (_.isImageFile(ext)) { // this.useDomain = true; // this.useHash = rExt !== '.ico'; } else {