Fix bug in apostrophe replacement

This commit is contained in:
kleph 2017-11-13 20:02:42 +01:00
parent 6cb1ec2771
commit dd2bcac0bb
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@
var s_txt = s_hostname.replace("." + s_base_domain, s_replace);
var apostrophe = s_txt.match(/(l)\./);
if (apostrophe){
s_txt = s_txt.replace(/\./, "'");
s_txt = s_txt.replace(/l\./, "l'");
}
s_txt = s_txt.replace(/\./g, " ");

View file

@ -33,7 +33,7 @@
var apostrophe = s_txt.match(/(l)\./);
if (apostrophe){
s_txt = s_txt.replace(/\./, "'");
s_txt = s_txt.replace(/l\./, "l'");
}
s_txt = s_txt.replace(/\./g, " ");
s_txt = s_replace + s_txt + "."