Fix apostrophe in the middle of sentence
This commit is contained in:
parent
80e8d8165c
commit
29a139f858
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
var s_hostname = punycode.toUnicode(location.host)
|
var s_hostname = punycode.toUnicode(location.host)
|
||||||
var s_txt = s_hostname.replace("." + s_base_domain, s_replace);
|
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){
|
if (apostrophe){
|
||||||
s_txt = s_txt.replace(/l\./, "l'");
|
s_txt = s_txt.replace(/l\./, "l'");
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
var s_hostname = punycode.toUnicode(location.host)
|
var s_hostname = punycode.toUnicode(location.host)
|
||||||
var s_txt = s_hostname.replace("." + s_base_domain, "");
|
var s_txt = s_hostname.replace("." + s_base_domain, "");
|
||||||
var apostrophe = s_txt.match(/(l)\./);
|
var apostrophe = s_txt.match(/\.(l)\.|^(l)\./);
|
||||||
|
|
||||||
if (apostrophe){
|
if (apostrophe){
|
||||||
s_txt = s_txt.replace(/l\./, "l'");
|
s_txt = s_txt.replace(/l\./, "l'");
|
||||||
|
|
Loading…
Reference in a new issue