Skip to content

Commit 7040611

Browse files
committed
feat: fixed the pattern attribute to be unicode aware.
1 parent aa9ca4d commit 7040611

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Form-Controls/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h1>Product Pick</h1>
3939
id="firstname"
4040
name="firstname"
4141
required
42-
pattern="[A-Za-z]+(?:['\-][A-Za-z]+)*"
42+
pattern="[\p{L}]+(?:['\-][\p{L}]+)*"
4343
title="enter a valid name">
4444
</div>
4545

@@ -50,7 +50,7 @@ <h1>Product Pick</h1>
5050
id="lastname"
5151
name="lastname"
5252
required
53-
pattern="[A-Za-z]+(?:['\-][A-Za-z]+)*"
53+
pattern="[\p{L}]+(?:['\-][\p{L}]+)*"
5454
title="enter a valid name">
5555
</div>
5656

0 commit comments

Comments
 (0)