Skip to content

Commit

Permalink
🐛 fix decoding encoded square brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed May 18, 2024
1 parent 2ffefd2 commit 5fe6566
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/extensions/decode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ extension _$Decode on QS {
final Map<String, dynamic> obj = {};

final String cleanStr =
options.ignoreQueryPrefix ? str.replaceFirst('?', '') : str;
(options.ignoreQueryPrefix ? str.replaceFirst('?', '') : str)
.replaceAll(RegExp(r'%5B', caseSensitive: false), '[')
.replaceAll(RegExp(r'%5D', caseSensitive: false), ']');
final num? limit = options.parameterLimit == double.infinity
? null
: options.parameterLimit;
Expand Down

0 comments on commit 5fe6566

Please sign in to comment.