From 9d9b4f00ed7f42fd4edf08160d184ad62b87e348 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:25:36 +0530 Subject: [PATCH] Fix nano id alphabets --- mobile/lib/models/nanoids/cluster_id.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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