[chore] Apply lint and formatter

a9aff676ba9a12ba63c4f4ffef2e77a4fde8c54b

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +4 -4Showing whitespace changes
public/scripts/extensions/translate/index.js+4 -4
@@ -410,13 +410,13 @@ async function translate(text, lang) {
410410 const chunks = text.split(/!\[.*?]\([^)]*\)/);
411411 const links = [...text.matchAll(/!\[.*?]\([^)]*\)/g)];
412412
413413 let rresult = ""'';
414414 for (let i = 0; i < chunks.length; i++) {
415415 rresult += await translateInner(chunks[i], lang);
416416 if (i < links.length) rresult += links[i][0];
417417 }
418418
419419 return rresult;
420420 } catch (error) {
421421 console.log(error);
422422 toastr.error(String(error), 'Failed to translate message');