mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
added replaceStr function
This commit is contained in:
parent
0c9f78632f
commit
49d7eec924
1 changed files with 6 additions and 1 deletions
|
|
@ -134,7 +134,12 @@ Util = exports || {};
|
|||
Util.removeStr = function(pStr, pSubStr){
|
||||
return pStr.replace(pSubStr,'');
|
||||
};
|
||||
|
||||
|
||||
Util.replaceStr = function(pStr, pFrom, pTo){
|
||||
var lRet = pStr.replace(new RegExp(pFrom, 'g'), pTo);
|
||||
return lRet;
|
||||
};
|
||||
|
||||
/**
|
||||
* invoke a couple of functions in paralel
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue