Skip to content

Commit

Permalink
TF-3189 added a comment in mail_address.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
florentos17 committed Nov 18, 2024
1 parent 89f6db4 commit 031add4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/lib/utils/mail/mail_address.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ class MailAddress with EquatableMixin {
}

String strictUrlEncode(String input) {
// cannot use Uri.encodeComponent because it is meant to be compliant with RFC2396
// eg `-_.!~*'()` are not encoded (but we want them to)
final StringBuffer encoded = StringBuffer();

for (int codeUnit in utf8.encode(input)) {
Expand Down

0 comments on commit 031add4

Please sign in to comment.