diff --git a/public/_locales/de/messages.json b/public/_locales/de/messages.json index fa0c41915..71f8e47fd 100644 --- a/public/_locales/de/messages.json +++ b/public/_locales/de/messages.json @@ -318,7 +318,7 @@ "message": "z. B. WEW, BOW, LAL etc." }, "tokenNamePatternDescription": { - "message": "Keine Sonderzeichen, 3-25 Länge" + "message": "3-25 Länge" }, "name": { "message": "Name" diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 79328a587..9fdcd5892 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -422,7 +422,7 @@ "message": "e.g. WEW, BOW, LAL etc." }, "tokenNamePatternDescription": { - "message": "No special characters, 3-25 length" + "message": "3-25 length" }, "name": { "message": "Name" diff --git a/public/_locales/en_GB/messages.json b/public/_locales/en_GB/messages.json index 55e9decd0..366bd3c6c 100644 --- a/public/_locales/en_GB/messages.json +++ b/public/_locales/en_GB/messages.json @@ -320,7 +320,7 @@ "message": "e.g. WEW, BOW, LAL etc." }, "tokenNamePatternDescription": { - "message": "No special characters, 3-25 length" + "message": "3-25 length" }, "name": { "message": "Name" diff --git a/public/_locales/fr/messages.json b/public/_locales/fr/messages.json index 6bb6eca32..c769354ad 100644 --- a/public/_locales/fr/messages.json +++ b/public/_locales/fr/messages.json @@ -306,7 +306,7 @@ "message": "p. ex. WEW, BOW, LAL etc." }, "tokenNamePatternDescription": { - "message": "Aucun caractère spécial, longueur de 3 à 25" + "message": "longueur de 3 à 25" }, "name": { "message": "Nom" diff --git a/public/_locales/ja/messages.json b/public/_locales/ja/messages.json index 89712b4ac..371348b5b 100644 --- a/public/_locales/ja/messages.json +++ b/public/_locales/ja/messages.json @@ -306,7 +306,7 @@ "message": "例: WEW、BOW、LALなど" }, "tokenNamePatternDescription": { - "message": "特殊文字なし、3~25文字" + "message": "3~25文字" }, "name": { "message": "名前" diff --git a/public/_locales/ko/messages.json b/public/_locales/ko/messages.json index 55ac328f5..98982f98b 100644 --- a/public/_locales/ko/messages.json +++ b/public/_locales/ko/messages.json @@ -306,7 +306,7 @@ "message": "예) WEW, BOW, LAL etc." }, "tokenNamePatternDescription": { - "message": "특수 문자를 제외한 3-25글자" + "message": "3-25글자" }, "name": { "message": "이름" diff --git a/public/_locales/pt/messages.json b/public/_locales/pt/messages.json index ab84e4c79..a59be5a41 100644 --- a/public/_locales/pt/messages.json +++ b/public/_locales/pt/messages.json @@ -318,7 +318,7 @@ "message": "por exemplo, WEW, BOW, LAL, etc." }, "tokenNamePatternDescription": { - "message": "Sem carateres especiais, comprimento de 3 a 25" + "message": "comprimento de 3 a 25" }, "name": { "message": "Nome" diff --git a/public/_locales/tr/messages.json b/public/_locales/tr/messages.json index 4c29ad05c..406cc5467 100644 --- a/public/_locales/tr/messages.json +++ b/public/_locales/tr/messages.json @@ -318,7 +318,7 @@ "message": "ör. WEW, BOW, LAL vb." }, "tokenNamePatternDescription": { - "message": "Özel karakter yok, 3-25 uzunluk" + "message": "3-25 uzunluk" }, "name": { "message": "Ad" diff --git a/public/_locales/uk/messages.json b/public/_locales/uk/messages.json index c34bdbfb9..bfa708935 100644 --- a/public/_locales/uk/messages.json +++ b/public/_locales/uk/messages.json @@ -317,7 +317,7 @@ "message": "e.g. WEW, BOW, LAL etc." }, "tokenNamePatternDescription": { - "message": "Ніяких спеціальних символів, 3-25 в довжину" + "message": "3-25 в довжину" }, "name": { "message": "Ім'я" diff --git a/public/_locales/zh_CN/messages.json b/public/_locales/zh_CN/messages.json index 8ce7bf1ac..56362e64e 100644 --- a/public/_locales/zh_CN/messages.json +++ b/public/_locales/zh_CN/messages.json @@ -306,7 +306,7 @@ "message": "例如WEW、BOW、LAL等等。" }, "tokenNamePatternDescription": { - "message": "无特殊字符,长度为3-25" + "message": "长度为3-25" }, "name": { "message": "名称" diff --git a/public/_locales/zh_TW/messages.json b/public/_locales/zh_TW/messages.json index 8d26adb36..4b7038600 100644 --- a/public/_locales/zh_TW/messages.json +++ b/public/_locales/zh_TW/messages.json @@ -306,7 +306,7 @@ "message": "例如 WEW、BOW、LAL 等" }, "tokenNamePatternDescription": { - "message": "無特殊字元,長度為 3-25 個字元" + "message": "長度為 3-25 個字元" }, "name": { "message": "名稱" diff --git a/src/app/pages/AddAsset/AddAsset.tsx b/src/app/pages/AddAsset/AddAsset.tsx index 8d5fb100c..c216d604b 100644 --- a/src/app/pages/AddAsset/AddAsset.tsx +++ b/src/app/pages/AddAsset/AddAsset.tsx @@ -367,7 +367,7 @@ const BottomSection: FC = props => { ref={register({ required: t('required'), pattern: { - value: /^[a-zA-Z0-9\s]{3,25}$/, + value: /^.{3,25}$/, message: t('tokenNamePatternDescription') } })}