From 2dc5c2c0d44b07e3d2f66dfef30f98ebdb94faa4 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Thu, 16 Mar 2023 09:12:49 +0100 Subject: [PATCH] Filter transcriptions --- static/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/index.js b/static/index.js index 28c3a8b..75049c2 100644 --- a/static/index.js +++ b/static/index.js @@ -187,7 +187,7 @@ $(document).ready(() => { html += `

${entry.word} (${entry.pos})

` if('sounds' in entry) { - html += `

${entry.sounds.map(sound => sound.ipa).join(', ')}

`; + html += `

${entry.sounds.map(sound => sound.ipa).filter(sound => sound && sound.match(/\/.*\//g)).join(', ')}

`; } if('senses' in entry) {