Skip to content

Commit f1e87ac

Browse files
committed
rewrite pattern for tag, should starts with [aA-zZ]
1 parent 368af9a commit f1e87ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/webrtc/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ <h3 class="join__title">
3939

4040
<div class="join__body">
4141
<div class="join__row">
42-
<input type="text" class="join__input" name="username" placeholder="Username" autofocus required title="Should contain only latin characters and alphanumeric characters in a range from 3 to 20, starts with a letter." pattern="^[a-zA-Z][a-zA-Z0-9-_\.]{1,20}$">
42+
<input type="text" class="join__input" name="username" placeholder="Username" autofocus required title="Should contain only latin characters and alphanumeric characters in a range from 3 to 20, starts with a letter." pattern="^[a-zA-Z][a-zA-Z0-9-_\.]{3,20}$">
4343
</div>
4444

4545
<div class="join__row">
46-
<input type="text" class="join__input" name="room" placeholder="Chat room name" required title="Should contain only latin characters and alphanumeric characters in a range from 3 to 15, without space." pattern="^[a-zA-Z0-9]{3,15}">
46+
<input type="text" class="join__input" name="room" placeholder="Chat room name" required title="Should contain only latin characters and alphanumeric characters in a range from 3 to 15, without space." pattern="^[a-zA-Z][a-zA-Z0-9]{3,15}">
4747
</div>
4848

4949
<div class="join__row">

0 commit comments

Comments
 (0)