@@ -38,12 +38,13 @@ export const fileExtensionsArray = [
38
38
'mov' ,
39
39
'vert' ,
40
40
'frag' ,
41
- 'bin'
41
+ 'bin' ,
42
+ 'xml'
42
43
] ;
43
44
44
45
export const mimeTypes = `image/*,audio/*,text/javascript,text/html,text/css,
45
46
application/json,application/x-font-ttf,application/x-font-truetype,text/plain,
46
- text/csv,.obj,video/webm,video/ogg,video/quicktime,video/mp4` ;
47
+ text/csv,.obj,video/webm,video/ogg,video/quicktime,video/mp4,application/xml ` ;
47
48
48
49
export const fileExtensions = fileExtensionsArray
49
50
. map ( ( ext ) => `.${ ext } ` )
@@ -64,10 +65,10 @@ export const MEDIA_FILE_QUOTED_REGEX = new RegExp(
64
65
65
66
export const STRING_REGEX = / ( [ ' " ] ) ( ( \\ \1| .) * ?) \1/ gm;
66
67
// these are files that have to be linked to with a blob url
67
- export const PLAINTEXT_FILE_REGEX = / .+ \. ( j s o n | t x t | c s v | v e r t | f r a g | t s v ) $ / i;
68
+ export const PLAINTEXT_FILE_REGEX = / .+ \. ( j s o n | t x t | c s v | v e r t | f r a g | t s v | x m l ) $ / i;
68
69
// these are files that users would want to edit as text (maybe svg should be here?)
69
- export const TEXT_FILE_REGEX = / .+ \. ( j s o n | t x t | c s v | t s v | v e r t | f r a g | j s | c s s | h t m l | h t m | j s x ) $ / i;
70
+ export const TEXT_FILE_REGEX = / .+ \. ( j s o n | t x t | c s v | t s v | v e r t | f r a g | j s | c s s | h t m l | h t m | j s x | x m l ) $ / i;
70
71
export const NOT_EXTERNAL_LINK_REGEX = / ^ (? ! ( h t t p : \/ \/ | h t t p s : \/ \/ ) ) / ;
71
72
export const EXTERNAL_LINK_REGEX = / ^ ( h t t p : \/ \/ | h t t p s : \/ \/ ) / ;
72
73
73
- export const CREATE_FILE_REGEX = / .+ \. ( j s o n | t x t | c s v | t s v | j s | c s s | f r a g | v e r t ) $ / i;
74
+ export const CREATE_FILE_REGEX = / .+ \. ( j s o n | t x t | c s v | t s v | j s | c s s | f r a g | v e r t | x m l ) $ / i;
0 commit comments