Fix bug in apostrophe replacement
This commit is contained in:
parent
6cb1ec2771
commit
dd2bcac0bb
2 changed files with 2 additions and 2 deletions
|
@ -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, " ");
|
||||
|
|
|
@ -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 + "."
|
||||
|
|
Loading…
Reference in a new issue