-
Notifications
You must be signed in to change notification settings - Fork 105
/
extensions.js
76 lines (71 loc) · 1.3 KB
/
extensions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
export const NON_CODE_EXTENSIONS = ['csv', 'log', 'md', 'tsv', 'txt'];
export const HTML_EXTENSIONS = ['htm', 'html', 'xhtml', 'xml', 'xsd', 'xsl']; // These types do not have an appropriate extracted text representation for preview
export const CODE_EXTENSIONS = [
'as',
'as3',
'asm',
'bat',
'c',
'cc',
'cmake',
'cpp',
'cs',
'css',
'cxx',
'diff',
'erb',
'groovy',
'h',
'haml',
'hh',
'java',
'js',
'json',
'less',
'm',
'make',
'ml',
'mm',
'php',
'pl',
'plist',
'properties',
'py',
'rb',
'rst',
'sass',
'scala',
'script',
'scm',
'sml',
'sql',
'sh',
'vi',
'vim',
'webdoc',
'yaml'
];
export const DOCUMENT_EXTENSIONS = CODE_EXTENSIONS.concat(NON_CODE_EXTENSIONS)
.concat(HTML_EXTENSIONS)
.concat([
'doc',
'docx',
'gdoc',
'gsheet',
'gslide',
'gslides',
'msg',
'odp',
'ods',
'odt',
'pdf',
'ppt',
'pptx',
'rtf',
'wpd',
'xls',
'xlsm',
'xlsx'
]);
export const TXT_EXTENSIONS = CODE_EXTENSIONS.concat(NON_CODE_EXTENSIONS);
export const HIGHLIGHTTABLE_EXTENSIONS = CODE_EXTENSIONS.concat(HTML_EXTENSIONS);