Skip to content

Commit 88d4e89

Browse files
authored
Merge pull request #375 from prousso/chore/add-symbols-pictographs-support
chore(url): allow symbols and pictographs in url
2 parents bcb1342 + d711ee7 commit 88d4e89

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/validators/url.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def _path_regex():
2929
return re.compile(
3030
# allowed symbols
3131
r"^[\/a-z0-9\-\.\_\~\!\$\&\'\(\)\*\+\,\;\=\:\@\%"
32+
# symbols / pictographs
33+
+ r"\U0001F300-\U0001F5FF"
3234
# emoticons / emoji
3335
+ r"\U0001F600-\U0001F64F"
3436
# multilingual unicode ranges

tests/test_url.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"http://[::FFFF:129.144.52.38]:80/index.html",
7777
"http://[2010:836B:4179::836B:4179]",
7878
"http://foo.bar",
79+
"http://foo.bar/📍",
7980
"http://google.com:9/test",
8081
"http://5.196.190.0/",
8182
"http://username:password@example.com:4010/",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy