mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix arg passing lint error
This commit is contained in:
parent
3cd53f617a
commit
4e636d7eec
@ -281,11 +281,11 @@ RED.keyboard = (function() {
|
|||||||
key.html(RED._('keyboard.unassigned'));
|
key.html(RED._('keyboard.unassigned'));
|
||||||
}
|
}
|
||||||
|
|
||||||
var text = object.id.replace(/(^.+:([a-z]))|(-([a-z]))/g,function(_,_,A,_,B,pos) {
|
var text = object.id.replace(/(^.+:([a-z]))|(-([a-z]))/g,function() {
|
||||||
if (pos === 0) {
|
if (arguments[5] === 0) {
|
||||||
return A.toUpperCase();
|
return arguments[2].toUpperCase();
|
||||||
} else {
|
} else {
|
||||||
return " "+B.toUpperCase();
|
return " "+arguments[4].toUpperCase();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var label = $('<div>').html(text).appendTo(item);
|
var label = $('<div>').html(text).appendTo(item);
|
||||||
|
Loading…
Reference in New Issue
Block a user