From 54a71d80495bb6dfc63f7135e2dbe417b6f1cbbc Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 4 Apr 2019 11:44:06 +0200 Subject: [PATCH] lint compliance --- .jshintignore | 1 + www/common/diffMarked.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.jshintignore b/.jshintignore index 338716108..d243f9260 100644 --- a/.jshintignore +++ b/.jshintignore @@ -30,3 +30,4 @@ customize/ www/debug/chainpad.dist.js www/pad/mathjax/ +www/code/mermaid.js diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index 1e5db4188..bac8efda2 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.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 '
'+code+'
'; } else { return '
'+code+'
';