diff --git a/src/validators/url.py b/src/validators/url.py index 43cf0561..5a87b646 100644 --- a/src/validators/url.py +++ b/src/validators/url.py @@ -29,6 +29,8 @@ def _path_regex(): return re.compile( # allowed symbols r"^[\/a-z0-9\-\.\_\~\!\$\&\'\(\)\*\+\,\;\=\:\@\%" + # symbols / pictographs + + r"\U0001F300-\U0001F5FF" # emoticons / emoji + r"\U0001F600-\U0001F64F" # multilingual unicode ranges diff --git a/tests/test_url.py b/tests/test_url.py index 6b365833..fd846da0 100644 --- a/tests/test_url.py +++ b/tests/test_url.py @@ -76,6 +76,7 @@ "http://[::FFFF:129.144.52.38]:80/index.html", "http://[2010:836B:4179::836B:4179]", "http://foo.bar", + "http://foo.bar/📍", "http://google.com:9/test", "http://5.196.190.0/", "http://username:password@example.com:4010/",