rc-upload
Advanced tools
Comparing version 4.2.0-alpha.0 to 4.2.0
@@ -12,4 +12,8 @@ function endsWith(str, suffix) { | ||
return acceptedFilesArray.some(function (type) { | ||
var validType = type.trim(); | ||
var validType = type.trim(); // This is something like */*,* allow all files | ||
if (/^\*(\/\*)?$/.test(type)) { | ||
return true; | ||
} | ||
if (validType.charAt(0) === '.') { | ||
@@ -16,0 +20,0 @@ return endsWith(fileName.toLowerCase(), validType.toLowerCase()); |
@@ -19,4 +19,8 @@ "use strict"; | ||
return acceptedFilesArray.some(function (type) { | ||
var validType = type.trim(); | ||
var validType = type.trim(); // This is something like */*,* allow all files | ||
if (/^\*(\/\*)?$/.test(type)) { | ||
return true; | ||
} | ||
if (validType.charAt(0) === '.') { | ||
@@ -23,0 +27,0 @@ return endsWith(fileName.toLowerCase(), validType.toLowerCase()); |
{ | ||
"name": "rc-upload", | ||
"version": "4.2.0-alpha.0", | ||
"version": "4.2.0", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
61239
1486
0