@@ -39,12 +39,13 @@ export const fileExtensionsArray = [
3939 'vert' ,
4040 'frag' ,
4141 'bin' ,
42- 'xml'
42+ 'xml' ,
43+ 'stl'
4344] ;
4445
4546export const mimeTypes = `image/*,audio/*,text/javascript,text/html,text/css,
4647application/json,application/x-font-ttf,application/x-font-truetype,text/plain,
47- text/csv,.obj,video/webm,video/ogg,video/quicktime,video/mp4,application/xml` ;
48+ text/csv,.obj,video/webm,video/ogg,video/quicktime,video/mp4,application/xml,.stl ` ;
4849
4950export const fileExtensions = fileExtensionsArray
5051 . map ( ( ext ) => `.${ ext } ` )
@@ -65,10 +66,10 @@ export const MEDIA_FILE_QUOTED_REGEX = new RegExp(
6566
6667export const STRING_REGEX = / ( [ ' " ] ) ( ( \\ \1| .) * ?) \1/ gm;
6768// these are files that have to be linked to with a blob url
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;
69+ 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 | s t l ) $ / i;
6970// these are files that users would want to edit as text (maybe svg should be here?)
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;
71+ 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 | s t l ) $ / i;
7172export const NOT_EXTERNAL_LINK_REGEX = / ^ (? ! ( h t t p : \/ \/ | h t t p s : \/ \/ ) ) / ;
7273export const EXTERNAL_LINK_REGEX = / ^ ( h t t p : \/ \/ | h t t p s : \/ \/ ) / ;
7374
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 | h t m l | h t m ) $ / i;
75+ 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 | h t m l | h t m | s t l ) $ / i;
0 commit comments