mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
lint catch es6 escapes in core nodes
to fix twitter node and sqlite node
This commit is contained in:
@@ -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);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-twitter",
|
||||
"version" : "0.1.13",
|
||||
"version" : "0.1.14",
|
||||
"description" : "A Node-RED node to talk to Twitter",
|
||||
"dependencies" : {
|
||||
"twitter-ng": "0.6.2",
|
||||
|
Reference in New Issue
Block a user