Filter transcriptions

This commit is contained in:
Augusto Gunsch 2023-03-16 09:12:49 +01:00
parent 4c45fba5f6
commit 2dc5c2c0d4
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ $(document).ready(() => {
html += `<h1>${entry.word} <span class="pos">(${entry.pos})</span></h1>`
if('sounds' in entry) {
html += `<p>${entry.sounds.map(sound => sound.ipa).join(', ')}</p>`;
html += `<p>${entry.sounds.map(sound => sound.ipa).filter(sound => sound && sound.match(/\/.*\//g)).join(', ')}</p>`;
}
if('senses' in entry) {