From cb8bb0f23b06479d0f664b07960e6b95ee22671b Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 8 Jan 2017 02:22:39 +0100 Subject: [PATCH] client/util: fix style --- client/js/util/markdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/js/util/markdown.js b/client/js/util/markdown.js index 3d50b0d..f43a536 100644 --- a/client/js/util/markdown.js +++ b/client/js/util/markdown.js @@ -117,7 +117,7 @@ class StrikeThroughWrapper extends BaseMarkdownWrapper { function createRenderer() { function sanitize(str) { - return str.replace(/&<"/g, function (m) { + return str.replace(/&<"/g, m => { if (m === '&') { return '&'; } @@ -140,7 +140,7 @@ function createRenderer() { res += '" height="' + height; } return res + '">'; - } + }; return renderer; }