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

fix(pii): Fix roundtrip error when PII selector starts with number #982

Merged
merged 6 commits into from
Apr 23, 2021

Conversation

untitaker
Copy link
Member

For disambiguous parsing, keys starting with numbers need to be quoted.

For disambiguous parsing, keys starting with numbers need to be quoted.
@untitaker untitaker requested a review from a team April 22, 2021 12:40
@untitaker untitaker changed the title fix: Fix roundtrip error when key starts with number. fix(pii): Fix roundtrip error when PII selector starts with number Apr 22, 2021
@sentry-io
Copy link

sentry-io bot commented Apr 22, 2021

Sentry issue: SENTRY-PS0

@untitaker
Copy link
Member Author

We actually have some _foo keys in prod so I am now also allowing underscore.

Pest has pre-defined classes for identifiers but I think this is easier to port should we decide to move to nom at some point.

@untitaker untitaker requested a review from jan-auer April 23, 2021 11:10
@untitaker untitaker merged commit 8aed942 into master Apr 23, 2021
@untitaker untitaker deleted the fix/pii-escaping branch April 23, 2021 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants