Skip to content

Commit 6ece0e9

Browse files
committed
Addition of regex for the name collection
1 parent a2541f9 commit 6ece0e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Form-Controls/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h1>Product Pick</h1>
1515
<form>
1616
<div>
1717
<label for="name">Customer Name:</label>
18-
<input type="text" id="name" name="name" required >
18+
<input type="text" id="name" name="name" required pattern=".*\S.*\S.*" title="Name must contain at least two characters.">
1919
</div>
2020
<label for="email">Email Address:</label>
2121
<input for="email" id="email" name="email" required>

0 commit comments

Comments
 (0)