PSReadLine
PSReadLine copied to clipboard
Surface sensitive pattern as a configurable option
Prerequisites
- [X] Write a descriptive title.
Description of the new feature/enhancement
we currently have this regex pattern hardcoded & this could be useful for further extensibility going forward.
https://github.com/PowerShell/PSReadLine/blob/e9122d38e932614393ff61faf57d6518990d7226/PSReadLine/History.cs#L116-L118
Therefore it would be great to surface extensibility of this via either
- fully configurable option with this pattern as the default setting
- setable property for addtional patterns to match
2 I feel is a better & more secureminded implementation going forward & would enable users to manage asks like #4077 (which we perhaps could pull into the default's as part of this enhancement
Proposed technical implementation details (optional)
No response