Skip to content

Commit ebd2b57

Browse files
authored
Merge pull request #5198 from bzinberg/zeros-crash
Update CodeMirror dependency
2 parents b69f22a + cb38548 commit ebd2b57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"backbone": "components/backbone#~1.2",
66
"bootstrap": "bootstrap#~3.4",
77
"bootstrap-tour": "0.9.0",
8-
"codemirror": "components/codemirror#~5.48.4",
8+
"codemirror": "components/codemirror#~5.51.0",
99
"create-react-class": "https://cdn.jsdelivr.net/npm/[email protected]/create-react-class.min.js",
1010
"es6-promise": "~1.0",
1111
"font-awesome": "components/font-awesome#~4.7.0",

notebook/static/base/js/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ define([
754754
// .mime
755755
var info = (mode && mode.mode && mode.mime && mode) ||
756756
CodeMirror.findModeByName(modename) ||
757-
CodeMirror.findModeByExtension(modename.split(".").slice(-1)) ||
757+
CodeMirror.findModeByExtension(modename.split(".").slice(-1)[0]) ||
758758
CodeMirror.findModeByMIME(modename) ||
759759
{mode: modename, mime: modename};
760760

0 commit comments

Comments
 (0)