[release/v7.6] Add Delimiter parameter to Get-Clipboard by adityapatwardhan · Pull Request #26572 · PowerShell/PowerShell

Backport of #26134 to release/v7.6

Triggered by @adityapatwardhan on behalf of @MartinGC94

Original CL Label: CL-General

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Customer Impact

  • Customer reported
  • Found internally

Adds new Delimiter parameter to Get-Clipboard cmdlet allowing users to customize delimiters for splitting clipboard content. This enhances functionality for handling different line endings across platforms.

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

New tests added in Clipboard.Tests.ps1 to verify the new Delimiter parameter functionality. The backport preserves all existing functionality while adding the new parameter capability.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Feature addition with backwards compatibility, isolated to Get-Clipboard cmdlet with comprehensive test coverage. No breaking changes or core engine modifications.