public: makes CodeMirror mode by filename lookups case-insensitive (#5857)

* updated the highlight.js plugin

* added some explicit mappings for syntax highlighting

* public: makes CodeMirror mode by filename extension lookup case-insensitive
pull/5859/head
Johannes 2019-11-09 00:23:08 +01:00 committed by Unknwon
parent 53d30ccde9
commit 7a0fbd0eb1
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ function initEditor() {
var val = $editFilename.val(), m, mode, spec, extension, extWithDot, previewLink, dataUrl, apiCall;
extension = extWithDot = "";
if (m = /.+\.([^.]+)$/.exec(val)) {
extension = m[1];
extension = m[1].toLowerCase();
extWithDot = "." + extension;
}