aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2018-11-27 16:10:35 +0300
committerRinpatch <rinpatch@sdf.org>2018-11-27 18:44:49 +0300
commitcddb173089ee4f5f5b2cd00aed304c85dcf696c0 (patch)
tree266348f52a363faed138e6966aaf12b45b3e61aa /src
parent91272dc5558e1326dac872f927dc8da7f9109cd0 (diff)
Fix filetype detection
Diffstat (limited to 'src')
-rw-r--r--src/services/file_type/file_type.service.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/file_type/file_type.service.js b/src/services/file_type/file_type.service.js
index f9d3b466..f543ec79 100644
--- a/src/services/file_type/file_type.service.js
+++ b/src/services/file_type/file_type.service.js
@@ -9,11 +9,11 @@ const fileType = (typeString) => {
type = 'image'
}
- if (typeString.match(/video\/(webm|mp4)/)) {
+ if (typeString.match(/video/)) {
type = 'video'
}
- if (typeString.match(/audio|ogg/)) {
+ if (typeString.match(/audio/)) {
type = 'audio'
}