fix undefined reference

pull/1/head
ansuz 2016-08-05 15:55:00 +02:00
parent 043041523f
commit da6e5d73d0
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}