From f91854d6e73e041d486987f2ad7b5daf1406aa53 Mon Sep 17 00:00:00 2001 From: davidmoore1 Date: Wed, 24 Jan 2024 09:41:05 -0500 Subject: [PATCH] Fix lint issue --- scripts/convertMarkdown.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/convertMarkdown.ts b/scripts/convertMarkdown.ts index 3ef8958ed..270ab687e 100644 --- a/scripts/convertMarkdown.ts +++ b/scripts/convertMarkdown.ts @@ -82,7 +82,7 @@ function isLocalAudioFile(ref: string): boolean { if (!refLower.startsWith('http')) { const ext = getFilenameExt(refLower); if (ext != null) { - result = ext === 'mp3'|| ext === 'webm' || ext === 'ogg' || ext === 'wav'; + result = ext === 'mp3' || ext === 'webm' || ext === 'ogg' || ext === 'wav'; } } return result; @@ -110,8 +110,13 @@ function getAudioHtmlFromMarkdownLink(link: string, text: string): string { let result = ''; const refLower = link.toLowerCase(); const ext = getFilenameExt(refLower); - if (ext === 'mp3'|| ext === 'wav') { - result = ' \\zaudioc-s | link="' + encodeURIComponent(link) + '" \\*' + text + ' \\zaudioc-e\\* '; + if (ext === 'mp3' || ext === 'wav') { + result = + ' \\zaudioc-s | link="' + + encodeURIComponent(link) + + '" \\*' + + text + + ' \\zaudioc-e\\* '; } return result; }