From 60b3745ecc8ef26e30e621b1fbf6954ccd84c751 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Fri, 1 Dec 2023 22:56:18 -0500 Subject: [PATCH] add back quantifier to start of regex --- src/backend/templates/mixins/form/account.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/templates/mixins/form/account.pug b/src/backend/templates/mixins/form/account.pug index f2bbf24f..d31a65d0 100644 --- a/src/backend/templates/mixins/form/account.pug +++ b/src/backend/templates/mixins/form/account.pug @@ -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: