lint compliance

pull/1/head
yflory 6 years ago
parent c3d3d67605
commit 54a71d8049

@ -30,3 +30,4 @@ customize/
www/debug/chainpad.dist.js
www/pad/mathjax/
www/code/mermaid.js

@ -70,7 +70,7 @@ define([
var mediaMap = {};
renderer.code = function (code, language) {
if(language == 'mermaid' && (code.match(/^sequenceDiagram/) || code.match(/^graph/))) {
if (language === 'mermaid' && (code.match(/^sequenceDiagram/) || code.match(/^graph/))) {
return '<pre class="mermaid">'+code+'</pre>';
} else {
return '<pre><code>'+code+'</code></pre>';

Loading…
Cancel
Save