Skip to content

Fix URL parsing to include delimiters before slashes#100

Open
mre wants to merge 2 commits intorobinst:mainfrom
mre:trim-exclamation-mark
Open

Fix URL parsing to include delimiters before slashes#100
mre wants to merge 2 commits intorobinst:mainfrom
mre:trim-exclamation-mark

Conversation

@mre
Copy link
Copy Markdown
Contributor

@mre mre commented Apr 4, 2026

A slash can be the end of a URL if the previous character is a valid URL character. This means that delimiters like ! or . before a / are included in the URL, e.g. /!/, but non-URL characters (like non-ASCII when IRI parsing is disabled) before a / are not.

Fixes #90

Add tests for URLs with delimiters followed by slashes, addressing
issue robinst#90.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trimming of exclamation mark

1 participant