fix case sensitive bug in file selection by file type

This commit is contained in:
MaysWind 2017-02-09 23:55:18 +08:00
parent 2e18f5802b
commit 31a5f2a55a

View file

@ -232,6 +232,10 @@
for (var i = 0; i < $scope.task.files.length; i++) { for (var i = 0; i < $scope.task.files.length; i++) {
var extension = ariaNgCommonService.getFileExtension($scope.task.files[i].fileName); var extension = ariaNgCommonService.getFileExtension($scope.task.files[i].fileName);
if (extension) {
extension = extension.toLowerCase();
}
if (extensions.indexOf(extension) >= 0) { if (extensions.indexOf(extension) >= 0) {
fileIndexes.push(i); fileIndexes.push(i);