client: linting

This commit is contained in:
Shyam Sunder
2021-11-29 18:44:20 -05:00
parent 9b3123a815
commit 9f95e9eb90
9 changed files with 20 additions and 32 deletions

View File

@ -136,12 +136,8 @@ function createRenderer() {
const renderer = new marked.Renderer();
renderer.image = (href, title, alt) => {
let [
_,
url,
width,
height,
] = /^(.+?)(?:\s=\s*(\d*)\s*x\s*(\d*)\s*)?$/.exec(href);
let [_, url, width, height] =
/^(.+?)(?:\s=\s*(\d*)\s*x\s*(\d*)\s*)?$/.exec(href);
let res = '<img src="' + sanitize(url) + '" alt="' + sanitize(alt);
if (width) {
res += '" width="' + width;