From 29a139f858493cdb40e261750ba75e8f8adb7bd5 Mon Sep 17 00:00:00 2001 From: kleph Date: Tue, 5 Jan 2021 20:33:41 +0100 Subject: [PATCH] Fix apostrophe in the middle of sentence --- saynul.html | 2 +- stoi.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/saynul.html b/saynul.html index 14637d9..63afe22 100644 --- a/saynul.html +++ b/saynul.html @@ -30,7 +30,7 @@ var s_hostname = punycode.toUnicode(location.host) var s_txt = s_hostname.replace("." + s_base_domain, s_replace); - var apostrophe = s_txt.match(/(l)\./); + var apostrophe = s_txt.match(/\.(l)\.|^(l)\./); if (apostrophe){ s_txt = s_txt.replace(/l\./, "l'"); } diff --git a/stoi.html b/stoi.html index 8d0cdba..74e43a4 100644 --- a/stoi.html +++ b/stoi.html @@ -30,7 +30,7 @@ var s_hostname = punycode.toUnicode(location.host) var s_txt = s_hostname.replace("." + s_base_domain, ""); - var apostrophe = s_txt.match(/(l)\./); + var apostrophe = s_txt.match(/\.(l)\.|^(l)\./); if (apostrophe){ s_txt = s_txt.replace(/l\./, "l'");