Skip to content

Commit

Permalink
fix: Check lower case extension when filtering (bleenco#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
2J authored and jkuri committed Mar 15, 2017
1 parent ce65e85 commit 3b64320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/ng-file-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class NgFileSelectDirective implements OnChanges {
}

let ext = f.name.split('.').pop();
if (ext && allowedExtensions.indexOf(ext) !== -1 ) {
if (ext && allowedExtensions.indexOf(ext.toLowerCase()) !== -1 ) {
return true;
}

Expand Down

0 comments on commit 3b64320

Please sign in to comment.