Skip to content

Commit 9256238

Browse files
author
Sean Oh
committed
Change to case insensitive comparison
1 parent 3ebf14c commit 9256238

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ResourceManager/Reservations/Commands.Reservations/Cmdlets/PatchReservation.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ private string ValidateAndGetAppliedSubscription()
121121
{
122122
string subscriptionId = AppliedScope;
123123
string prefix = "/subscriptions/";
124-
if (subscriptionId.Contains(prefix) && subscriptionId.Length > prefix.Length)
124+
if (subscriptionId.IndexOf(prefix, StringComparison.InvariantCultureIgnoreCase) >= 0
125+
&& subscriptionId.Length > prefix.Length)
125126
{
126127
subscriptionId = subscriptionId.Substring(prefix.Length);
127128
}

0 commit comments

Comments
 (0)