nhanh-pure-function 1.3.16 → 1.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Utility/Utility.js +2 -2
- package/package.json +1 -1
package/lib/Utility/Utility.js
CHANGED
|
@@ -667,8 +667,8 @@ export class _FileTypeChecker {
|
|
|
667
667
|
|
|
668
668
|
// 判断文件类型
|
|
669
669
|
static check(url, type) {
|
|
670
|
-
const extensions =
|
|
671
|
-
return
|
|
670
|
+
const extensions = _FileTypeChecker.fileExtensions[type];
|
|
671
|
+
return _FileTypeChecker._checkExtension(url, extensions);
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
// 通用的检查扩展名的函数
|