Skip to content
Permalink
Browse files

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
  • Loading branch information...
johannes69ki authored and unknwon committed Nov 8, 2019
1 parent 53d30cc commit 7a0fbd0eb14f865753c5918fe73ecc4d24cfe503
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/js/gogs.js
@@ -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;
}

0 comments on commit 7a0fbd0

Please sign in to comment.
You can’t perform that action at this time.