fix undefined reference

pull/1/head
ansuz 8 years ago
parent 043041523f
commit da6e5d73d0

@ -297,7 +297,7 @@ define([
var mime = CodeMirror.findModeByMIME(file.type);
if (!mime) {
var ext = /.+\.([^.]+)$/.exec(val);
var ext = /.+\.([^.]+)$/.exec(file.name);
if (ext[1]) {
mode = CodeMirror.findModeByExtension(ext[1]);
}

Loading…
Cancel
Save