mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-29 02:30:28 +00:00
Removed part of url thet says that js is disabled ("no-js")
This commit is contained in:
parent
307c22173e
commit
d8a053f670
8 changed files with 42 additions and 59 deletions
25
lib/util.js
25
lib/util.js
|
|
@ -309,17 +309,20 @@ Util = exports || {};
|
|||
* @param pSubStr
|
||||
*/
|
||||
Util.removeStr = function(pStr, pSubStr){
|
||||
var lRet;
|
||||
if( Util.isString(pStr) && pSubStr ){
|
||||
var n = pSubStr.length;
|
||||
|
||||
if( Util.isArray(pSubStr) )
|
||||
Util.fori(n, function(i){
|
||||
lRet = pStr = pStr.replace(pSubStr[i], '');
|
||||
});
|
||||
else
|
||||
lRet = pStr.replace(pSubStr, '');
|
||||
}
|
||||
var lRet = Util.isString(pStr) && pSubStr;
|
||||
|
||||
if( lRet ){
|
||||
var n = pSubStr.length;
|
||||
|
||||
if( Util.isArray(pSubStr) )
|
||||
Util.fori(n, function(i){
|
||||
lRet = pStr = pStr.replace(pSubStr[i], '');
|
||||
});
|
||||
else
|
||||
lRet = pStr.replace(pSubStr, '');
|
||||
}
|
||||
else
|
||||
lRet = pStr;
|
||||
|
||||
return lRet;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue