client/util: fix style
This commit is contained in:
parent
beb8d8091b
commit
cb8bb0f23b
|
@ -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 '&';
|
return '&';
|
||||||
}
|
}
|
||||||
|
@ -140,7 +140,7 @@ function createRenderer() {
|
||||||
res += '" height="' + height;
|
res += '" height="' + height;
|
||||||
}
|
}
|
||||||
return res + '">';
|
return res + '">';
|
||||||
}
|
};
|
||||||
return renderer;
|
return renderer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue