Skip to content

Commit

Permalink
fix: add more banned extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhd1701 committed Sep 24, 2022
1 parent 0da8b0c commit 6a8c614
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions enex2notion/note_parser/note_post_process_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,18 @@ def remove_banned_files(note_blocks, note: EvernoteNote):


def _is_banned_extension(filename):
file_ext = filename.split(".")[-1]
return file_ext in {"exe", "com", "js", "jar"}
file_ext = filename.split(".")[-1].lower()
return file_ext in {
"apk",
"app",
"com",
"ear",
"elf",
"exe",
"ipa",
"jar",
"js",
"xap",
"xbe",
"xex",
}

0 comments on commit 6a8c614

Please sign in to comment.