Skip to content

Commit

Permalink
Merge pull request #200 from shelfio/feature/prohibit-zip-files
Browse files Browse the repository at this point in the history
Add .zip to unsupported file extensions
  • Loading branch information
Siloss authored Aug 25, 2022
2 parents 379244b + 987fbb9 commit 219e0ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import isAudio from '@shelf/is-audio-filepath';
import isVideo from 'is-video';
import isImage from 'is-image';

const UNSUPPORTED_FILE_EXTENSIONS = ['.chm', '.heic', '.gdoc', '.gsheet', '.gslides'];
const UNSUPPORTED_FILE_EXTENSIONS = ['.chm', '.heic', '.gdoc', '.gsheet', '.gslides', '.zip'];

export function canBeConvertedToPDF(filename: string): boolean {
filename = filename.toLowerCase();
Expand Down

0 comments on commit 219e0ae

Please sign in to comment.