Skip to content

Conversation

Crozzers
Copy link
Contributor

This PR fixes #648.

Empty links would have their URLs hashed to prevent them from being muddled with. Since the links were empty, that meant we were inserting an empty record into the hash table: self._escape_table[''] = _hash_text(...)

This empty record caused havok in regexes. I fixed this by checking for empty URLs and returning early.

@nicholasserra
Copy link
Collaborator

LGTM thanks!

@nicholasserra nicholasserra merged commit 4c0534e into trentm:master Oct 13, 2025
15 checks passed
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.

Empty link breaks backslash newline

2 participants