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 regexp on nested json object #1023

Merged
merged 2 commits into from
Nov 24, 2017

Conversation

chenghung
Copy link
Contributor

@chenghung chenghung commented Nov 17, 2017

The querystring package does not stringify nested attributes of json object.
It'll broken regexp matching if request body contains complex json data.

> qs = require('querystring')
> qs.stringify({ a: { b: 1 } })
'a='

@gr2m
Copy link
Member

gr2m commented Nov 20, 2017

Could you please add a test for the change to make sure we don’t break it again in future 🙏

@chenghung chenghung force-pushed the fix-regexp-on-nested-json-object branch from 9993110 to 7353d41 Compare November 20, 2017 07:14
@chenghung
Copy link
Contributor Author

@gr2m sure, one testcase has been added, please review it again, thanks.

@gr2m
Copy link
Member

gr2m commented Nov 24, 2017

thanks a lot!

@gr2m gr2m merged commit e8cb44a into nock:master Nov 24, 2017
@lock
Copy link

lock bot commented Sep 13, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you!

@lock lock bot locked as resolved and limited conversation to collaborators Sep 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants