Skip to content

Custom Rules #866

Closed Answered by c3s4rfred
bb0rges asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bb0rges please, can you attach the file to check the identation. Anyway, you have an issue with the regexp, you need to scape the scape character '' to make it work -> (powershell|pwsh)(.+)?-ExecutionPolicy\s+Bypass

Example:
"pwsh> This is a test -ExecutionPolicy Bypass" this will match.

Best regards

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by c3s4rfred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants