Skip to content
New issue

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

$parseInteger fails with "#" picture string #387

Closed
michaelblight opened this issue Nov 18, 2019 · 0 comments · Fixed by #388
Closed

$parseInteger fails with "#" picture string #387

michaelblight opened this issue Nov 18, 2019 · 0 comments · Fixed by #388
Labels

Comments

@michaelblight
Copy link

I'm doing this from Node Red, which is using JSONata 1.6, so this may have been fixed, but I cannot confirm.

$parseInteger("50", "#") produces the following error:

Invalid JSONata expression: matchSpec.parse is not a function.

After some investigation I found $formatInteger(50, "#") is not handled, but produces a better error message:

Invalid JSONata expression: Formatting an integer as a sequence starting with "#" is not supported by this implementation

This looks like error D3130, and since this error still exists in 1.7, I'm guessing the other error still occurs too. Is it possible to improve the error message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants