Skip to content

fix: domain match routine#236

Merged
colincasey merged 1 commit into
masterfrom
fix/235_domain_matching
Apr 21, 2022
Merged

fix: domain match routine#236
colincasey merged 1 commit into
masterfrom
fix/235_domain_matching

Conversation

@colincasey
Copy link
Copy Markdown
Contributor

The domain match routine can fail in cases where the domain suffix characters can be located in the string before the suffix. Changing the logic to use lastIndexOf instead of indexOf seems more appropriate for testing the suffix here.

Fixes #235

The domain match routine can fail in cases where the domain suffix characters can be located in the string before the suffix.

Changing the logic to use `lastIndexOf` instead of `indexOf` seems more appropriate for testing the suffix here.
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.

domainMatch() breaks for URLs with TLD in substring of subdomain

3 participants