diff --git a/static/index.js b/static/index.js index 468172d..00757ff 100644 --- a/static/index.js +++ b/static/index.js @@ -159,7 +159,8 @@ $(document).ready(() => { html += sense.glosses[0].replace(new RegExp(`of ${word}$`), ''); html += ` of ${word}`; } else { - html += sense.glosses[0]; + let link = ' of $1'; + html += sense.glosses[0].replace(/of\s+([\u00BF-\u1FFF\u2C00-\uD7FF\w]+)\s*$/, link); } html += '';