mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(util) rm execOnMatch
This commit is contained in:
parent
6571fc3e4a
commit
1f4caf6bf2
1 changed files with 0 additions and 13 deletions
13
lib/util.js
13
lib/util.js
|
|
@ -818,19 +818,6 @@
|
|||
return ret;
|
||||
};
|
||||
|
||||
this.execOnMatch = function(exp, funcsObj) {
|
||||
var name, func, match;
|
||||
|
||||
if (funcsObj)
|
||||
for (name in funcsObj) {
|
||||
match = name.match(new RegExp(exp));
|
||||
func = funcsObj[name];
|
||||
|
||||
if (match)
|
||||
Util.exec(func, match);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* exec function if it exist in object
|
||||
* @pArg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue