Skip to content

Commit

Permalink
fix: valid non-ASCII characters get removed from downloaded file name #…
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Sep 26, 2023
1 parent ae2745f commit a7e102f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/primitive_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ abstract class PrimitiveUtils {
}

static String toSafeFileName(String str) {
return str.replaceAll(RegExp(r'[^\w\s\.\-_]'), "_");
return str.replaceAll(RegExp(r'[/\?%*:|"<>]'), ' ');
}
}

0 comments on commit a7e102f

Please sign in to comment.