Skip to content

Commit

Permalink
Add transcripts to list of allowed handouts (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
wowkalucky committed Aug 3, 2017
1 parent 018f6ac commit 0de62fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ describe('Correct file extensions are returned when', function() {
'.doc, .docx, .xls, .xlsx, .ppt, .pptx, .pub, ' + // MSOffice
'.odt, .ods, .odp, ' + // openOffice
'.zip, .7z, .gzip, .tar ' + // archives
'.html, .xml, .js, .sjson' // other
'.html, .xml, .js, .sjson, ' + // other
'.srt, .vtt' // transcripts
);
expect(getAllowedFileExtensions('somethings_else_or_null')).toEqual(handoutsAllowedFileTypes);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ function getAllowedFileExtensions(uploadingContext) {
'.doc, .docx, .xls, .xlsx, .ppt, .pptx, .pub, ' + // MSOffice
'.odt, .ods, .odp, ' + // openOffice
'.zip, .7z, .gzip, .tar ' + // archives
'.html, .xml, .js, .sjson' // other
'.html, .xml, .js, .sjson, ' + // other
transcriptsAllowedFileExtensions // transcripts
);
switch (uploadingContext) {
case 'transcripts':
Expand Down

0 comments on commit 0de62fd

Please sign in to comment.