Skip to content

Conversation

@dergel
Copy link
Member

@dergel dergel commented Nov 10, 2025

getDomainByName() now correctly finds domains regardless of whether they were stored with protocol (http://, https://) or trailing slashes.

The function first tries an exact match for backward compatibility, then falls back to normalized comparison by removing protocols and trailing slashes from both the search string and stored domain names.

This fixes issue #556 where domains stored as "https://domain.de/" or "domain.de/" could not be found when searching for "domain.de".

getDomainByName() now correctly finds domains regardless of whether they
were stored with protocol (http://, https://) or trailing slashes.

The function first tries an exact match for backward compatibility, then
falls back to normalized comparison by removing protocols and trailing
slashes from both the search string and stored domain names.

This fixes issue #556 where domains stored as "https://domain.de/" or
"domain.de/" could not be found when searching for "domain.de".
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.

3 participants