-
-
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 #12
Conversation
WalkthroughThe update involves a significant change in the decoding process of the Changes
Assessment against linked issues
Poem
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (4)
Files skipped from review due to trivial changes (1)
Additional comments not posted (3)
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 (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #12 +/- ##
=======================================
Coverage 98.08% 98.08%
=======================================
Files 13 13
Lines 625 625
=======================================
Hits 613 613
Misses 12 12 ☔ View full report in Codecov by Sentry. |
## 1.0.9 - [FIX] incorrect parsing of nested params with closing square bracket `]` in the property name (#12)
## 1.0.9 - [FIX] incorrect parsing of nested params with closing square bracket `]` in the property name (#12)
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, Dart's built-in
RegExp
module doesn't support recursive regular expressions, so we must use the recursive_regex 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?
String
Checklist: