Correct RenameNumber

This commit is contained in:
jomjol
2022-12-19 19:32:18 +01:00
parent 1b600d54c8
commit 21fa9431a2
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ function getbasepath(){
{ {
// host = "http://192.168.2.219"; // jomjol interner test // host = "http://192.168.2.219"; // jomjol interner test
// host = "http://192.168.178.46"; // jomjol interner test // host = "http://192.168.178.46"; // jomjol interner test
host = "http://192.168.178.44"; // jomjol interner Real host = "http://192.168.178.46"; // jomjol interner Real
// host = "http://192.168.43.191"; // host = "http://192.168.43.191";
// host = "."; // jomjol interner localhost // host = "."; // jomjol interner localhost

View File

@@ -706,7 +706,7 @@ function getNUMBERInfo(){
} }
function RenameNUMBER(_alt, _neu){ function RenameNUMBER(_alt, _neu){
if ((_neu.search(".") >= 0) || (_neu.search(",") >= 0) || (_neu.search(" ") >= 0) || (_neu.search("\"") >= 0)) if ((_neu.indexOf(".") >= 0) || (_neu.indexOf(",") >= 0) || (_neu.indexOf(" ") >= 0) || (_neu.indexOf("\"") >= 0))
{ {
return "Name must not contain ',', '.', ' ' or '\"' - please change name"; return "Name must not contain ',', '.', ' ' or '\"' - please change name";
} }