We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d89f115 commit a872415Copy full SHA for a872415
server/utils/fileUtils.js
@@ -67,7 +67,7 @@ export const MEDIA_FILE_QUOTED_REGEX = new RegExp(
67
68
export const STRING_REGEX = /(['"])((\\\1|.)*?)\1/gm;
69
// these are files that have to be linked to with a blob url
70
-export const PLAINTEXT_FILE_REGEX = /.+\.(json|txt|csv|vert|frag|tsv|xml|stl)$/i;
+export const PLAINTEXT_FILE_REGEX = /.+\.(json|txt|csv|vert|frag|tsv|xml|stl|mtl)$/i;
71
// these are files that users would want to edit as text (maybe svg should be here?)
72
export const TEXT_FILE_REGEX = /.+\.(json|txt|csv|tsv|vert|frag|js|css|html|htm|jsx|xml|stl|mtl)$/i;
73
export const NOT_EXTERNAL_LINK_REGEX = /^(?!(http:\/\/|https:\/\/))/;
0 commit comments