Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix(auth): hide codes reg ex, match every non-whitespace character

Prateek Sunal9ab82621b964
diff --git a/auth/lib/ui/code_widget.dart b/auth/lib/ui/code_widget.dart
index 55f67e5b9c..cb8b274cad 100644
--- a/auth/lib/ui/code_widget.dart
+++ b/auth/lib/ui/code_widget.dart
@@ -587,7 +587,7 @@ class _CodeWidgetState extends State<CodeWidget> {
String _getFormattedCode(String code) {
if (_hideCode) {
// replace all digits with β€’
- code = code.replaceAll(RegExp(r'\d'), 'β€’');
+ code = code.replaceAll(RegExp(r'\S'), 'β€’');
}
if (code.length == 6) {
return "${code.substring(0, 3)} ${code.substring(3, 6)}";