Skip to content

Commit

Permalink
Stops abnf regex from halting when it encounters a line terminator in…
Browse files Browse the repository at this point in the history
… the fragment
  • Loading branch information
JamesJohnUtley committed Apr 25, 2023
1 parent dda8bea commit e12b52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rfc3986/abnf_regexp.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
_AUTHORITY_RE = "[^\\\\/?#]*"
_PATH_RE = "[^?#]*"
_QUERY_RE = "[^#]*"
_FRAGMENT_RE = ".*"
_FRAGMENT_RE = "(?s:.*)"

# Extracted from http://tools.ietf.org/html/rfc3986#appendix-B
COMPONENT_PATTERN_DICT = {
Expand Down

0 comments on commit e12b52c

Please sign in to comment.