We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The split parser is retaining quotes in the data, which breaks some controllers, such as math.
!!math 1+1
2 (correct)
2
!!math 1 + 1
error evaluating math: Value expected (char 5) (a different issue)
error evaluating math: Value expected (char 5)
!!math "1 + 1"
1 + 1
{"name":"isolex","hostname":"cerberus","pid":667,"kind":"function","level":20,"params":["[]","[[\"expr\",[\"\\\"1 + 1\\\"\\n\"]]]","math","create","bb5b7048-2548-4d58-82a2-20ab87100ae0","be45dafc-7d4c-4586-968c-127f074ca683"],"query":"INSERT INTO \"command\ "(\"createdAt\", \"updatedAt\", \"labels\", \"data\", \"noun\", \"verb\", \"id\", \"contextId\") VALUES (datetime('now'), datetime('now'), ?, ?, ?, ?, ?, ?)","msg":"orm logged query","time":"2019-09-27T00:33:11.609Z","v":0}
Judging by the params, the expression's quotes are being kept. There used to be a keepQuotes option in https://www.npmjs.com/package/split-string#optionsquotes, but it no longer appears in the documentation.
params
keepQuotes
The text was updated successfully, but these errors were encountered:
8f1fe60
ssube
No branches or pull requests
Summary
The split parser is retaining quotes in the data, which breaks some controllers, such as math.
Steps to Reproduce
!!math 1+1
!!math 1 + 1
!!math "1 + 1"
Actual Behavior
Expected Behavior
Details
Judging by the
params
, the expression's quotes are being kept. There used to be akeepQuotes
option in https://www.npmjs.com/package/split-string#optionsquotes, but it no longer appears in the documentation.The text was updated successfully, but these errors were encountered: