Skip to content

Commit

Permalink
Merge branch 'allow-multiple-dashes-in-username' into 'develop'
Browse files Browse the repository at this point in the history
Multiple dashes in username is valid

See merge request hive/condenser!395
  • Loading branch information
dnotestein committed Oct 24, 2023
2 parents 400fea5 + c984f5d commit aeafbca
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/app/utils/ChainValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ export function validate_account_name(value) {
if (!/^[a-z0-9-]*$/.test(label)) {
return tt('chainvalidation_js.each_account_segment_should_have_only_letters_digits_or_dashes');
}
if (/--/.test(label)) {
return tt('chainvalidation_js.each_account_segment_should_have_only_one_dash_in_a_row');
}
if (!/[a-z0-9]$/.test(label)) {
return tt('chainvalidation_js.each_account_segment_should_end_with_a_letter_or_digit');
}
Expand Down

0 comments on commit aeafbca

Please sign in to comment.