-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat(graph): ignore trailing whitespace and other data #154
Conversation
This adds support for a typical message format where a number is followed by whitespace and a unit, e.g. "550 PPM" or "20.0 °C" or "9000 W", by ignoring the whitespace and everything after it.
I like the idea! Thank you for suggesting something like this. I hope I can look into it on Sunday (I want to make sure to understand side effects or possible generalization). |
Whitespace aligned numbers like ` 3.4` and `123.4` work both now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Juerd do you have thoughts about my refactoring?
I still think this is a nice feature!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Juerd for the idea and the initial implementation!
This adds support for a typical message format where a number is followed by whitespace and a unit, e.g. "550 PPM" or "20.0 °C" or "9000 W", by ignoring the whitespace and everything after it.