Skip to content

Commit fc9bdd6

Browse files
committed
Allow preview suffix for PowerShellEditorServices too
Since I do actually plan to use it to preview a PSReadLine preview.
1 parent a80f796 commit fc9bdd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/VersionTools.psm1

+3-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ function Test-VersionIsValid {
144144
}
145145
"PowerShellEditorServices" {
146146
if ($SemanticVersion.PreReleaseLabel) {
147-
throw "Version shouldn't have a pre-release label!"
147+
if ($SemanticVersion.PreReleaseLabel -ne "preview") {
148+
throw "Suffix should only be 'preview'!"
149+
}
148150
}
149151
}
150152
}

0 commit comments

Comments
 (0)