Skip to content

Commit

Permalink
add back quantifier to start of regex
Browse files Browse the repository at this point in the history
  • Loading branch information
beckpaul committed Dec 2, 2023
1 parent 0817f32 commit 60b3745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/templates/mixins/form/account.pug
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mixin username
p Enter your username
.formStart
//value=formData['username']
input(type='text', name='username', required='required', data-minlength='3', maxlength='16', pattern='^[A-Za-z][A-Za-z0-9_\\-]{2,15}$', data-minlength-error='The username is too short - must be at least 3 characters', data-error='Please check username requirements', data-remote="/account/checkUsername", data-remote-error="Username taken", placeholder='Eco_Player7-', value=formData['username'])
input(type='text', name='username', required='required', data-minlength='3', maxlength='16', pattern='^[A-Za-z]{1}[A-Za-z0-9_\\-]{2,15}$', data-minlength-error='The username is too short - must be at least 3 characters', data-error='Please check username requirements', data-remote="/account/checkUsername", data-remote-error="Username taken", placeholder='Eco_Player7-', value=formData['username'])
span(aria-hidden='true')
.formHelp
ul Your username must:
Expand Down

0 comments on commit 60b3745

Please sign in to comment.