Мелочь
This commit is contained in:
@ -9,14 +9,14 @@ function trt(key)
|
||||
if(val==null || val===undefined)
|
||||
{
|
||||
for(let item in g_translations) {
|
||||
if(item.toLowerCase()==key.toLowerCase())
|
||||
if(item.toLowerCase()==(''+key).toLowerCase())
|
||||
{
|
||||
val=g_translations[item];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(val==null || val===undefined) return key.replace(/_/g, ' ');
|
||||
if(val==null || val===undefined) return (''+key).replace(/_/g, ' ');
|
||||
else return val;
|
||||
}
|
||||
|
||||
@ -1055,6 +1055,14 @@ function applyNodeToNode(first, second, name)
|
||||
}
|
||||
}
|
||||
|
||||
/*function applyObjectToObject(first, second, name){
|
||||
if(first===null || second===null || name ===null){
|
||||
console.error("first="+first+" second="+second+" name="+name);
|
||||
return;
|
||||
}
|
||||
|
||||
}*/
|
||||
|
||||
function escapeRegExp(str) {
|
||||
return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user