Skip to content

Conversation

@matthewquinn
Copy link

Fixed handling of first parameter being a type of array of strings in channel.write.
Added allowance for forward slashes in field values grep.

@XtoZee
Copy link

XtoZee commented Dec 13, 2018

Array parameter in 'write' method surely needs to be fixed! Not possible to run queries in requests

"node": ">= 6"
},
"dependencies": {
"pegjs": "^0.10.0",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pegjs should be devDependencies
Promise is not required since it is available natively in NodeJs

},{})

const isListen=command.split('/').indexOf('listen')>0;
const isListen= typeof command === 'object' ? command.indexOf('listen')>0 : command.split('/').indexOf('listen')>0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Array.isArray(command)?command:command.split('/')).indexOf('listend')>0


identifier
= "=" id:[\.a-zA-Z\-0-9]+ "=" {return id.join('')}
= "=" id:[\.a-zA-Z\-0-9\/]+ "=" {return id.join('')}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should '/' be allowed as part of an ID? Could :, |, ;, _, or - be used just as effectively? Didn't want to cause issues when doing splits and regular expressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants