lint catch es6 escapes in core nodes

to fix twitter node and sqlite node
This commit is contained in:
Dave Conway-Jones
2018-05-18 18:40:14 +01:00
parent 44b4f44988
commit 989c7147cb
5 changed files with 9 additions and 7 deletions

View File

@@ -401,7 +401,9 @@ module.exports = function(RED) {
if (msg.payload.slice(0,2) == "D ") {
// direct message syntax: "D user message"
[dm_user,msg.payload]=msg.payload.match(/D\s+(\S+)\s+(.*)/).slice(1);
var t = msg.payload.match(/D\s+(\S+)\s+(.*)/).slice(1);
dm_user = t[0];
msg.payload = t[1];
}
if (msg.payload.length > 280) {
msg.payload = msg.payload.slice(0,279);