Skip to content

Fix redundant pattern error#9356

Merged
glen-84 merged 1 commit intomainfrom
gai/fix-redundant-pattern-error
Mar 11, 2026
Merged

Fix redundant pattern error#9356
glen-84 merged 1 commit intomainfrom
gai/fix-redundant-pattern-error

Conversation

@glen-84
Copy link
Copy Markdown
Member

@glen-84 glen-84 commented Mar 11, 2026

Summary of the changes (Less than 80 chars)

  • Fix redundant pattern error.

Copilot AI review requested due to automatic review settings March 11, 2026 10:04
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

Fixes an incorrect/redundant pattern in NameUtils.GetPathName so path traversal stops at the root segment (instead of continuing due to a redundant or pattern).

Changes:

  • Update GetPathName loop condition to only iterate while the current segment is non-root.

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

@glen-84 glen-84 merged commit 28f900a into main Mar 11, 2026
363 of 367 checks passed
@glen-84 glen-84 deleted the gai/fix-redundant-pattern-error branch March 11, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants