Skip to content

Add note about possible ReDoS#13123

Merged
sdwheeler merged 2 commits into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w593455-ReDoS
Jul 2, 2026
Merged

Add note about possible ReDoS#13123
sdwheeler merged 2 commits into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w593455-ReDoS

Conversation

@sdwheeler

@sdwheeler sdwheeler commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

PR Summary

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributor's guide.
  • Style: This PR adheres to the style guide.

Copilot AI review requested due to automatic review settings July 1, 2026 23:08
@sdwheeler sdwheeler changed the title Sdw w593455 re do s Add note about possible ReDoS Jul 1, 2026
@learn-build-service-prod

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates PowerShell documentation across multiple versions to add guidance on regular-expression ReDoS risks, and to refresh metadata/links so readers can find the new “Regular expression safety” content.

Changes:

  • Adds ReDoS/regex safety notes to about_Switch, about_Split, and Select-String.
  • Adds a new Regular expression safety section to about_Comparison_Operators (5.1, 7.4–7.7) and retargets link references.
  • Updates ms.date fields and fixes some internal link reference numbering/targets.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
reference/7.7/Microsoft.PowerShell.Core/About/about_Switch.md Updates ms.date, fixes link refs, and adds a regex safety note pointing to comparison operators guidance.
reference/7.7/Microsoft.PowerShell.Core/About/about_Split.md Updates ms.date, adds regex safety note, and normalizes “See also” links to reference-style.
reference/7.7/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Updates ms.date, adds “Regular expression safety” section, and rewires link references.
reference/7.6/Microsoft.PowerShell.Core/About/about_Switch.md Same as 7.7: metadata/link ref updates + regex safety note.
reference/7.6/Microsoft.PowerShell.Core/About/about_Split.md Same as 7.7: metadata + regex safety note + link ref normalization.
reference/7.6/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Same as 7.7: adds regex safety section and updates link refs.
reference/7.5/Microsoft.PowerShell.Core/About/about_Switch.md Same as 7.7: metadata/link ref updates + regex safety note.
reference/7.5/Microsoft.PowerShell.Core/About/about_Split.md Same as 7.7: metadata + regex safety note + link ref normalization.
reference/7.5/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Same as 7.7: adds regex safety section and updates link refs.
reference/7.4/Microsoft.PowerShell.Core/About/about_Switch.md Same as 7.7: metadata/link ref updates + regex safety note.
reference/7.4/Microsoft.PowerShell.Core/About/about_Split.md Same as 7.7: metadata + regex safety note + link ref normalization.
reference/7.4/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Fixes online version view, adds regex safety section, and updates link refs.
reference/5.1/Microsoft.PowerShell.Core/About/about_Switch.md Same as 7.7: metadata/link ref updates + regex safety note.
reference/5.1/Microsoft.PowerShell.Core/About/about_Split.md Same as 7.7: metadata + regex safety note + link ref normalization.
reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Same as 7.7: adds regex safety section and updates link refs.
reference/7.4/Microsoft.PowerShell.Utility/Select-String.md Updates ms.date and adds a regex safety note linking to comparison operators guidance.

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

Comment thread reference/7.7/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Outdated
Comment thread reference/7.7/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Outdated
Comment thread reference/7.6/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Outdated
Comment thread reference/7.6/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Outdated
Comment thread reference/7.5/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Outdated
Comment thread reference/7.5/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Outdated
Comment thread reference/7.4/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Outdated
Comment thread reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Outdated
Comment thread reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md Outdated
@learn-build-service-prod

This comment was marked as outdated.

@learn-build-service-prod

This comment was marked as outdated.

@learn-build-service-prod

This comment was marked as outdated.

@sdwheeler sdwheeler force-pushed the sdw-w593455-ReDoS branch from 7a5e83b to 427a991 Compare July 1, 2026 23:28
@learn-build-service-prod

This comment was marked as outdated.

@sdwheeler sdwheeler requested a review from TravisEz13 July 1, 2026 23:32
@learn-build-service-prod

This comment was marked as outdated.

@sdwheeler sdwheeler force-pushed the sdw-w593455-ReDoS branch from 427a991 to 651e440 Compare July 2, 2026 15:52
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 651e440:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/About/about_Split.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Core/About/about_Switch.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/About/about_Split.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Core/About/about_Switch.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Utility/Select-String.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Core/About/about_Split.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Core/About/about_Switch.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Core/About/about_Split.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Core/About/about_Switch.md ✅Succeeded View (powershell-7.6)
reference/7.7/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md ✅Succeeded View (powershell-7.7)
reference/7.7/Microsoft.PowerShell.Core/About/about_Split.md ✅Succeeded View (powershell-7.7)
reference/7.7/Microsoft.PowerShell.Core/About/about_Switch.md ✅Succeeded View (powershell-7.7)

For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit e480087 into MicrosoftDocs:main Jul 2, 2026
5 checks passed
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