Skip to content

Commit fd27fef

Browse files
committed
Fixed broken regex for customer name
1 parent 30b3dcf commit fd27fef

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
@@ -29,7 +29,7 @@ <h1>Product Pick</h1>
2929
-->
3030

3131
<label for="cname">Customer name</label>
32-
<input type="text" id="cname" name="cname" title="Please enter at least 2 non-space characters." pattern="\S\S">
32+
<input type="text" id="cname" name="cname" title="Please enter at least 2 non-space characters." pattern=".*\S.*\S.*">
3333

3434
<label for="cemail">Customer email</label>
3535
<input type="email" id="cemail" name="cemail" required>

0 commit comments

Comments
 (0)