diff --git a/saynul.html b/saynul.html index 63afe22..0a425d1 100644 --- a/saynul.html +++ b/saynul.html @@ -31,9 +31,14 @@ var s_hostname = punycode.toUnicode(location.host) var s_txt = s_hostname.replace("." + s_base_domain, s_replace); var apostrophe = s_txt.match(/\.(l)\.|^(l)\./); - if (apostrophe){ - s_txt = s_txt.replace(/l\./, "l'"); - } + var napostrophe = s_txt.match(/\.(n)\.|^(n)\./); + + if (apostrophe){ + s_txt = s_txt.replace(/l\./, "l'"); + } + if (napostrophe){ + s_txt = s_txt.replace(/n\./, "n'"); + } s_txt = s_txt.replace(/\./g, " "); s_txt = s_txt.charAt(0).toUpperCase() + s_txt.slice(1); diff --git a/stoi.html b/stoi.html index 74e43a4..9c084e0 100644 --- a/stoi.html +++ b/stoi.html @@ -31,10 +31,15 @@ var s_hostname = punycode.toUnicode(location.host) var s_txt = s_hostname.replace("." + s_base_domain, ""); var apostrophe = s_txt.match(/\.(l)\.|^(l)\./); + var napostrophe = s_txt.match(/\.(n)\.|^(n)\./); + + if (apostrophe){ + s_txt = s_txt.replace(/l\./, "l'"); + } + if (napostrophe){ + s_txt = s_txt.replace(/n\./, "n'"); + } - if (apostrophe){ - s_txt = s_txt.replace(/l\./, "l'"); - } s_txt = s_txt.replace(/\./g, " "); s_txt = s_replace + s_txt + "."