Skip to content

Commit f13e509

Browse files
author
Kapil Borle
committed
Change macOS to OSX in usecompatiblecmdlet rule
1 parent 1a4122f commit f13e509

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Rules/UseCompatibleCmdlets.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private bool GetVersionInfoFromPlatformString(
105105
psedition = null;
106106
psversion = null;
107107
os = null;
108-
const string pattern = @"^(?<psedition>core|desktop)-(?<psversion>[\S]+)-(?<os>windows|linux|macOS)$";
108+
const string pattern = @"^(?<psedition>core|desktop)-(?<psversion>[\S]+)-(?<os>windows|linux|osx)$";
109109
var match = Regex.Match(fileName, pattern, RegexOptions.IgnoreCase);
110110
if (match == Match.Empty)
111111
{

0 commit comments

Comments
 (0)