We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0baac58 + fd01b27 commit dba3adaCopy full SHA for dba3ada
src/rfc3986/abnf_regexp.py
@@ -27,7 +27,7 @@
27
ALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
28
DIGIT = "0123456789"
29
# https://tools.ietf.org/html/rfc3986#section-2.3
30
-UNRESERVED = UNRESERVED_CHARS = ALPHA + DIGIT + r"._!-"
+UNRESERVED = UNRESERVED_CHARS = ALPHA + DIGIT + r'._!-~'
31
UNRESERVED_CHARS_SET = set(UNRESERVED_CHARS)
32
NON_PCT_ENCODED_SET = RESERVED_CHARS_SET.union(UNRESERVED_CHARS_SET)
33
# We need to escape the '-' in this case:
tests/test_normalizers.py
@@ -97,6 +97,7 @@ def test_fragment_normalization():
97
["component", "encoded_component"],
98
[
99
("/%", "/%25"),
100
+ ("/~", "/~"),
101
("/%a", "/%25a"),
102
("/%ag", "/%25ag"),
103
("/%af", "/%af"),
0 commit comments