Description
rfc3986/src/rfc3986/abnf_regexp.py
Line 153 in 1640734
The PATH_EMPTY
regex won't ever match anything when embedded within another regex, as it is in several places like here:
rfc3986/src/rfc3986/abnf_regexp.py
Lines 184 to 190 in 1640734
This causes the URIReference.is_absolute()
method to return an incorrect result for a URI with a scheme but no path. For example, http:
(or even http:?q=v
) is an absolute URI according to section-4.3, but URIReference.from_string('http:').is_absolute()
returns False
.
There are likely other places where this causes intended matches to fail, but I have not tried to investigate further. It's a little odd looking, but a fix that would probably work is just to change the value of PATH_EMPTY
to an empty string.