1
0
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:
Nick O'Leary 2017-01-11 12:18:52 +00:00
parent 3cd53f617a
commit 4e636d7eec
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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);