Skip to content

Commit 1b6035a

Browse files
authored
Apply suggestions from code review
the `-` needs to be escaped within the regular expression (good test, that caught this issue!) Signed-off-by: Jess Pomfret <jpomfret7@gmail.com>
1 parent d7462e3 commit 1b6035a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/Public/Workspace/Get-FabricWorkspace.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function Get-FabricWorkspace {
3838

3939
[Parameter(Mandatory = $false)]
4040
[ValidateNotNullOrEmpty()]
41-
[ValidatePattern('^[a-zA-Z0-9_- ]*$')]
41+
[ValidatePattern('^[a-zA-Z0-9_\- ]*$')]
4242
[string]$WorkspaceName
4343
)
4444

0 commit comments

Comments
 (0)