Fixed error in determining file extension. * Closes #36.
h3rald h3rald@h3rald.com
Sun, 27 Dec 2015 11:37:50 +0100
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
admin/js/components/document.js
→
admin/js/components/document.js
@@ -17,7 +17,7 @@ vm.binary = false;
vm.image = false; vm.tags = []; try { - vm.ext = vm.id().match(/\.(.+)$/)[1]; + vm.ext = vm.id().match(/\.([a-z0-9]+)$/i)[1]; } catch(e) { vm.ext = ""; }