-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fix tag parsing #5382
Fix tag parsing #5382
Conversation
1ea7271
to
8564673
Compare
@jsternberg Can you take a look as well? @e-dard Looks good. Can you update the changelog as well? |
30fc54a
to
f997f16
Compare
@jwilder updated |
// of bytes, starting from i and ending with stop byte, where stop byte | ||
// has not been escaped. | ||
// | ||
// If there are leading spaces, they are skipped. |
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.
Can you remove the extra space at the beginning of this docstring?
f997f16
to
58a42cb
Compare
If you can just squash the commits, this looks good to me 👍 |
58a42cb
to
789aff9
Compare
Done |
👍 and merging since @jwilder gave his +1 too. |
@e-dard nice fixes! let me know if you find yourself bored over the next two weeks. ;) |
This PR fixes #5380 and #5381.
I've added a new type to the test package, which allows for more robust testing by validating that the tags you specify in your expected case are what you get from the processed point. Prior to this the bugs were being introduced to the expected tags values because one had to use
point.Tags()
to retrieve them.Heads up: anywhere that skips a buffer by two places when the current byte is
\
(as inif buf[i] == '\\' { i +=2 }
) is possibly hiding a bug. I'd be happy to look in more detail at the Points/tags/fields stuff in a couple of weeks when I come on board @jwilder.