diff --git a/static/index.js b/static/index.js index db10473..709e3e5 100644 --- a/static/index.js +++ b/static/index.js @@ -163,7 +163,7 @@ $(document).ready(() => { if('form_of' in sense) { let word = sense.form_of[0].word; - html += sense.glosses[0].replace(new RegExp(`of ${word}$`), ''); + html += sense.glosses[0].replace(new RegExp(`of ${word}.?$`), ''); html += ` of ${word}`; } else { let link = ' of $1';