Roo/Markdown.js
authorAlan Knowles <alan@roojs.com>
Tue, 25 Oct 2016 06:46:36 +0000 (14:46 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 25 Oct 2016 06:46:36 +0000 (14:46 +0800)
Roo/Markdown.js

index 53ed968..abf748e 100644 (file)
@@ -1137,7 +1137,7 @@ Roo.Markdown.toHtml = function(text) {
         // explicitly match decimal, hex, and named HTML entities 
       return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g, function(_, n) {
         n = n.toLowerCase();
-        if (n === 'colon') return ':';
+        if (n === 'colon') { return ':'; }
         if (n.charAt(0) === '#') {
           return n.charAt(1) === 'x'
             ? String.fromCharCode(parseInt(n.substring(2), 16))