client/util: fix style
This commit is contained in:
parent
beb8d8091b
commit
cb8bb0f23b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue