-
-
Notifications
You must be signed in to change notification settings - Fork 0
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 incorrect parsing of nested params with closing square bracket ] in the property name #1
Conversation
WalkthroughThe recent changes involve enhancing the Changes
Assessment against linked issues
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (4)
Files skipped from review due to trivial changes (1)
Additional Context UsedLanguageTool (6)
Additional comments not posted (7)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
Description
Fixes incorrect parsing of nested params with closing square bracket
]
in the property name.The regular expression you're currently in use,
matches a left bracket
[
, followed by any number of characters that are not brackets, and then a right bracket]
. This is why it matches the innermost brackets.To match the outermost brackets, including nested brackets, we must use a recursive regular expression. However, Python's built-in
re
module doesn't support recursive regular expressions, so we must use theregex
module instead, which is a third-party module that provides more advanced regular expression features.Fixes ljharb/qs#493
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
test_qs_issue_493
Checklist: