From 56917c4b65f1556b8645f2a7c4372d9185790e07 Mon Sep 17 00:00:00 2001
From: Mahdi Yari <m.yary15@gmail.com>
Date: Wed, 19 Apr 2023 14:28:51 +0330
Subject: [PATCH] Update utils.js

---
 src/utils.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/utils.js b/src/utils.js
index 86ff2a1..eecb4d8 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -46,9 +46,10 @@ export function validateAccountName(value) {
     if (!/^[a-z0-9-]*$/.test(label)) {
       return suffix + "have only letters, digits, or dashes.";
     }
-    if (/--/.test(label)) {
-      return suffix + "have only one dash in a row.";
-    }
+    // Multiple dashes in a row is VALID
+    // if (/--/.test(label)) {
+    //   return suffix + "have only one dash in a row.";
+    // }
     if (!/[a-z0-9]$/.test(label)) {
       return suffix + "end with a letter or digit.";
     }
-- 
GitLab