mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(util) add ){ -> ) {
This commit is contained in:
parent
79f03880e3
commit
b52d06bbaa
1 changed files with 3 additions and 3 deletions
|
|
@ -432,7 +432,7 @@ Util = exports || {};
|
|||
Util.removeStr = function(pStr, pSubStr){
|
||||
var lRet = Util.isString(pStr) && pSubStr;
|
||||
|
||||
if ( lRet ){
|
||||
if ( lRet ) {
|
||||
var n = pSubStr.length;
|
||||
|
||||
if ( Util.isArray(pSubStr) )
|
||||
|
|
@ -456,7 +456,7 @@ Util = exports || {};
|
|||
Util.removeStrOneTime = function(pStr, pSubStr){
|
||||
var lRet = Util.isString(pStr) && pSubStr;
|
||||
|
||||
if ( lRet ){
|
||||
if ( lRet ) {
|
||||
var n = pSubStr.length;
|
||||
|
||||
if ( Util.isArray(pSubStr) )
|
||||
|
|
@ -482,7 +482,7 @@ Util = exports || {};
|
|||
Util.replaceStr = function(pStr, pFrom, pTo){
|
||||
var lRet = pStr;
|
||||
|
||||
if (pStr && pFrom){
|
||||
if (pStr && pFrom) {
|
||||
pFrom = Util.escapeRegExp(pFrom);
|
||||
lRet = pStr.replace(new RegExp(pFrom, 'g'), pTo);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue