all repos — litestore @ 100e448446640cd793ac8746724e014d146c5213

A minimalist nosql document store.

Fixed error in determining file extension.
* Closes #36.
h3rald h3rald@h3rald.com
Sun, 27 Dec 2015 11:37:50 +0100
commit

100e448446640cd793ac8746724e014d146c5213

parent

c7caf248dd6b41ebc900a4f28be70f1ea7b29fb2

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M admin/js/components/document.jsadmin/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 = ""; }