Skip to content

Commit 23a13c0

Browse files
Mark sure to check for mcr repository prefix
1 parent 68eedfd commit 23a13c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code/PSRepositoryInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public enum RepositoryProviderType
104104

105105
internal bool IsMARRepository()
106106
{
107-
return (ApiVersion == APIVersion.ContainerRegistry && Uri.Host.Contains("mcr.microsoft.com"));
107+
return (ApiVersion == APIVersion.ContainerRegistry && Uri.Host.StartsWith("mcr.microsoft") );
108108
}
109109

110110
#endregion

0 commit comments

Comments
 (0)