瀏覽代碼

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

Prateek Sunal 1 年之前
父節點
當前提交
9ab82621b9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      auth/lib/ui/code_widget.dart

+ 1 - 1
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)}";