setAlias using a regex (#336)
created a new function that allows to use a regex to manipulate item name
This commit is contained in:
committed by
Alexander Zobnin
parent
bb0ebd9685
commit
f96c847f6d
@@ -149,13 +149,24 @@ addFuncDef({
|
||||
defaultParams: ['24h'],
|
||||
});
|
||||
|
||||
//Alias
|
||||
|
||||
addFuncDef({
|
||||
name: 'setAlias',
|
||||
category: 'Alias',
|
||||
params: [
|
||||
{ name: 'alias', type: 'string'}
|
||||
{ name: 'alias', type: 'string' }
|
||||
],
|
||||
defaultParams: [],
|
||||
defaultParams: []
|
||||
});
|
||||
|
||||
addFuncDef({
|
||||
name: 'setAliasByRegex',
|
||||
category: 'Alias',
|
||||
params: [
|
||||
{ name: 'aliasByRegex', type: 'string' }
|
||||
],
|
||||
defaultParams: []
|
||||
});
|
||||
|
||||
_.each(categories, function(funcList, catName) {
|
||||
|
||||
Reference in New Issue
Block a user