Skip to content

Commit

Permalink
fix: add modified regex for the firstName and lastName
Browse files Browse the repository at this point in the history
Signed-off-by: Kartik Jolapara <[email protected]>
  • Loading branch information
codingmickey committed Aug 1, 2023
1 parent 7d8f16d commit 7af94d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/src/components/SignupForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ The Meshery Playground is connected to live Kubernetes cluster(s) and allows use
id='firstname'
name='firstname'
maxLength='32'
pattern="([A-Za-zŽžÀ-ÿ]+('{0,1}-{0,1}[A-Za-zÀ-ÿ])?[A-Za-zŽžÀ-ÿ]){1,32}|[A-Za-zŽžÀ-ÿ]"
pattern="^[\p{L}]+('[\p{L}]*)?(?:-[\p{L}]+)*([\s][\p{L}]+('[\p{L}]*)?(?:-[\p{L}]+)*){0,31}$"
required
/>
</div>
Expand All @@ -141,7 +141,7 @@ The Meshery Playground is connected to live Kubernetes cluster(s) and allows use
id='lastname'
name='lastname'
maxLength='32'
pattern="([A-Za-zŽžÀ-ÿ]+('{0,1}-{0,1}[A-Za-zÀ-ÿ])?[A-Za-zŽžÀ-ÿ]){1,32}|[A-Za-zŽžÀ-ÿ]"
pattern="^[\p{L}]+('[\p{L}]*)?(?:-[\p{L}]+)*([\s][\p{L}]+('[\p{L}]*)?(?:-[\p{L}]+)*){0,31}$"
required
/>
</div>
Expand Down

0 comments on commit 7af94d7

Please sign in to comment.