Skip to content

fix/invalidate domains with incorrect dots#2460

Merged
forgetso merged 7 commits intomainfrom
fix/invalidate-domains-with-incorrect-dots
Mar 23, 2026
Merged

fix/invalidate domains with incorrect dots#2460
forgetso merged 7 commits intomainfrom
fix/invalidate-domains-with-incorrect-dots

Conversation

@forgetso
Copy link
Copy Markdown
Member

  • Invalidate domains with incorrect dots
  • docs(changeset): Invalidate domains with incorrect dots

@forgetso forgetso requested a review from goastler as a code owner March 23, 2026 13:54
Copilot AI review requested due to automatic review settings March 23, 2026 13:54
@forgetso forgetso requested a review from HughParry as a code owner March 23, 2026 13:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens domain syntax validation in @prosopo/util to reject domains with “incorrect dots” (empty labels), aligning domain handling with stricter hostname rules and preventing malformed domains from being treated as valid.

Changes:

  • Add an early rejection in validateDomain() for consecutive dots (..), leading dot, and trailing dot.
  • Add a changeset marking @prosopo/util for a patch release with this validation change.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/util/src/url.ts Adds explicit invalidation for domains with empty-label dot patterns before regex/URL parsing.
.changeset/cozy-seas-enjoy.md Declares a patch release entry documenting the domain validation change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 23, 2026 14:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@forgetso forgetso enabled auto-merge (squash) March 23, 2026 14:09
@forgetso forgetso merged commit e0fb3d6 into main Mar 23, 2026
9 of 10 checks passed
@forgetso forgetso deleted the fix/invalidate-domains-with-incorrect-dots branch March 23, 2026 14:18
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.

2 participants