Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Do not matchpipe as port separator#10884

Merged
davidfowl merged 1 commit intodotnet:mainfrom
jnyrup:port_regex
Aug 8, 2025
Merged

Do not matchpipe as port separator#10884
davidfowl merged 1 commit intodotnet:mainfrom
jnyrup:port_regex

Conversation

@jnyrup
Copy link
Contributor

Description

Usinggrep.app I noticed that a slightly incorrect regex was introduced in#10340 to match "host and port".

[:|,] matches any of the characters:, '|' or,, where the updated regex[:,] only matches: or,.

Fixes # (issue)

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add<remarks /> and<code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

@github-actionsgithub-actionsbot added the needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners labelAug 8, 2025
@dotnet-policy-servicedotnet-policy-servicebot added the community-contributionIndicates that the PR has been added by a community member labelAug 8, 2025
@davidfowldavidfowl requested a review fromCopilotAugust 8, 2025 11:45
Copy link
Contributor

CopilotAI 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 fixes a regex pattern in the ConnectionStringParser that was incorrectly matching pipe characters ('|') as valid port separators. The change ensures only colon (':') and comma (',') are recognized as valid separators between host and port in connection strings.

Key Changes

  • Updated the regex pattern to remove pipe character from the character class
  • Changed[:|,] to[:,] to match only colon or comma separators

@davidfowl
Copy link
Member

Good catch

jnyrup reacted with thumbs up emoji

@davidfowldavidfowl merged commit2383d5b intodotnet:mainAug 8, 2025
282 checks passed
@dotnet-policy-servicedotnet-policy-servicebot added this to the9.5 milestoneAug 8, 2025
@jnyrupjnyrup deleted the port_regex branchAugust 8, 2025 13:33
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 8, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

Copilot code reviewCopilotCopilot left review comments

@davidfowldavidfowldavidfowl approved these changes

Assignees

No one assigned

Labels

community-contributionIndicates that the PR has been added by a community memberneeds-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Milestone

9.5

Development

Successfully merging this pull request may close these issues.

2 participants

@jnyrup@davidfowl

Comments


[8]ページ先頭

©2009-2026 Movatter.jp