Skip to content

Commit 2e55e60

Browse files
committed
add limits for input fields
rewrite a text of error
1 parent 1ad061c commit 2e55e60

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="Enter a username. Should contain only latin characters and alphanumeric characters, 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-_\.]{1,20}$">
4343
</div>
4444

4545
<div class="join__row">
46-
<input type="text" class="join__input" name="room" placeholder="Chat room name" required title="Enter a chat room. Should contain only latin characters and alphanumeric characters, without space." pattern="^[a-zA-Z0-9]+$">
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}">
4747
</div>
4848

4949
<div class="join__row">

0 commit comments

Comments
 (0)