mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(util) rm convertName
This commit is contained in:
parent
53603b4971
commit
08e86475f4
1 changed files with 0 additions and 15 deletions
15
lib/util.js
15
lib/util.js
|
|
@ -312,21 +312,6 @@
|
|||
return str;
|
||||
};
|
||||
|
||||
/**
|
||||
* function convert name: rm: '(, ), -, " "'
|
||||
*
|
||||
* @name
|
||||
* convert
|
||||
*/
|
||||
this.convertName = function(name) {
|
||||
var conv = name && name.toLowerCase();
|
||||
|
||||
conv = Util.rmStr(conv, ['(', ')']);
|
||||
conv = Util.replaceStr(conv, ' ', '-');
|
||||
|
||||
return conv;
|
||||
};
|
||||
|
||||
this.escapeRegExp = function(str) {
|
||||
var isStr = Util.type.string(str);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue