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
jQuery Terminal throw error on valid strings when using object as interpreter
strings are parsed correctly
invalid JSON exception is thrown
create basic terminal with command as object property function:
var term = $('body').terminal({ test: (...args) => { console.log(args); } }, {checkArity: false});
Type: test "{\"wrap\": true}" or test '{"wrap": true}'
test "{\"wrap\": true}"
test '{"wrap": true}'
it throw: Error: Unexpected token w in JSON at position 3
Error: Unexpected token w in JSON at position 3
The text was updated successfully, but these errors were encountered:
fix parsing jSON inside string #642
93f876d
No branches or pull requests
Issue summary
jQuery Terminal throw error on valid strings when using object as interpreter
Expected behavior
strings are parsed correctly
Actual behavior
invalid JSON exception is thrown
Steps to reproduce
create basic terminal with command as object property function:
Type:
test "{\"wrap\": true}"
ortest '{"wrap": true}'
it throw:
Error: Unexpected token w in JSON at position 3
The text was updated successfully, but these errors were encountered: