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

simple example pretty.js - split #98

Closed
milanbella opened this Issue Jul 24, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@milanbella

milanbella commented Jul 24, 2016

That example is not instructive of concepts and is buggy.

Curl fetches only one line without EOL so it works. But mapping only just one line of input to json is not good way explaining the concept of 'map' function.

As soon as I tried mapping more then one line pretty.js has crashed in json parser on syntax error because es.split() has correctly generated empty string after last EOL terminating last line.

@right9ctrl

This comment has been minimized.

Collaborator

right9ctrl commented Sep 5, 2018

updated with a better example

@right9ctrl right9ctrl closed this Sep 5, 2018

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