client/util: fix style

This commit is contained in:
rr- 2017-01-08 02:22:39 +01:00
parent beb8d8091b
commit cb8bb0f23b
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ class StrikeThroughWrapper extends BaseMarkdownWrapper {
function createRenderer() { function createRenderer() {
function sanitize(str) { function sanitize(str) {
return str.replace(/&<"/g, function (m) { return str.replace(/&<"/g, m => {
if (m === '&') { if (m === '&') {
return '&amp;'; return '&amp;';
} }
@ -140,7 +140,7 @@ function createRenderer() {
res += '" height="' + height; res += '" height="' + height;
} }
return res + '">'; return res + '">';
} };
return renderer; return renderer;
} }