Fix apostrophe in the middle of sentence

This commit is contained in:
kleph 2021-01-05 20:33:41 +01:00
parent 80e8d8165c
commit 29a139f858
2 changed files with 2 additions and 2 deletions

View file

@ -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'");
}

View file

@ -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'");