Skip to content

Commit c4e37ae

Browse files
implementd a new pattern for the name label
1 parent 89082b7 commit c4e37ae

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Form-Controls/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ <h1>Product Pick</h1>
1717

1818
<div>
1919
<label for="name"> Name*: </label>
20-
<input type="text" id="name" name="name" required minlength="2" pattern="[A-Z]">
20+
<!-- input at least two characters doesn't accept numbers and allows any accented letters in other languages spaces , astrophes and hyphens including one or more character -->
21+
<input type="text" id="name" name="name" required minlength="2" pattern="[\p{L}\s'-]+">
2122
</div>
2223

2324
<div>

0 commit comments

Comments
 (0)