From eadc96bfe112d5d4cf5eb349e8a2b6e195bcb5c2 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Tue, 4 Sep 2018 14:11:30 +0800 Subject: [PATCH] =?UTF-8?q?useCompile=20=E5=BA=94=E8=AF=A5=E6=98=AF?= =?UTF-8?q?=E7=94=B1=E6=BA=90=E6=96=87=E4=BB=B6=E5=90=8E=E7=BC=80=E5=86=B3?= =?UTF-8?q?=E5=AE=9A=E8=80=8C=E4=B8=8D=E6=98=AF=E4=BA=A7=E5=87=BA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8E=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {