Skip to content

Commit 219e0ae

Browse files
authored
Merge pull request #200 from shelfio/feature/prohibit-zip-files
Add .zip to unsupported file extensions
2 parents 379244b + 987fbb9 commit 219e0ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import isAudio from '@shelf/is-audio-filepath';
22
import isVideo from 'is-video';
33
import isImage from 'is-image';
44

5-
const UNSUPPORTED_FILE_EXTENSIONS = ['.chm', '.heic', '.gdoc', '.gsheet', '.gslides'];
5+
const UNSUPPORTED_FILE_EXTENSIONS = ['.chm', '.heic', '.gdoc', '.gsheet', '.gslides', '.zip'];
66

77
export function canBeConvertedToPDF(filename: string): boolean {
88
filename = filename.toLowerCase();

0 commit comments

Comments
 (0)