Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix nano id alphabets

Neeraj Gupta9d9b4f00ed7f
diff --git a/mobile/lib/models/nanoids/cluster_id.dart b/mobile/lib/models/nanoids/cluster_id.dart
index 278e0bb1a2..ee2d14013e 100644
--- a/mobile/lib/models/nanoids/cluster_id.dart
+++ b/mobile/lib/models/nanoids/cluster_id.dart
@@ -1,13 +1,13 @@
import "package:flutter/foundation.dart";
import 'package:nanoid/nanoid.dart';
-const alphaphet =
+const enteWhiteListedAlphabet =
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
const clusterIDLength = 22;
class ClusterID {
static String generate() {
- return "cluster_${customAlphabet(urlAlphabet, clusterIDLength)}";
+ return "cluster_${customAlphabet(enteWhiteListedAlphabet, clusterIDLength)}";
}
// Validation method