Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TW-1161 Allow entering special characters for tokens names #1022

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/en_GB/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
"message": "例: WEW、BOW、LALなど"
},
"tokenNamePatternDescription": {
"message": "特殊文字なし、3~25文字"
"message": "3~25文字"
},
"name": {
"message": "名前"
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/ko/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
"message": "예) WEW, BOW, LAL etc."
},
"tokenNamePatternDescription": {
"message": "특수 문자를 제외한 3-25글자"
"message": "3-25글자"
},
"name": {
"message": "이름"
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/pt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/tr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/uk/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
"message": "e.g. WEW, BOW, LAL etc."
},
"tokenNamePatternDescription": {
"message": "Ніяких спеціальних символів, 3-25 в довжину"
"message": "3-25 в довжину"
},
"name": {
"message": "Ім'я"
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
"message": "例如WEW、BOW、LAL等等。"
},
"tokenNamePatternDescription": {
"message": "无特殊字符,长度为3-25"
"message": "长度为3-25"
},
"name": {
"message": "名称"
Expand Down
2 changes: 1 addition & 1 deletion public/_locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
"message": "例如 WEW、BOW、LAL 等"
},
"tokenNamePatternDescription": {
"message": "無特殊字元,長度為 3-25 個字元"
"message": "長度為 3-25 個字元"
},
"name": {
"message": "名稱"
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/AddAsset/AddAsset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ const BottomSection: FC<BottomSectionProps> = props => {
ref={register({
required: t('required'),
pattern: {
value: /^[a-zA-Z0-9\s]{3,25}$/,
value: /^.{3,25}$/,
message: t('tokenNamePatternDescription')
}
})}
Expand Down
Loading