Skip to content

Commit

Permalink
Update UGPhoneNumberFormatProvider.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorPilley authored Nov 23, 2024
1 parent 5f3f325 commit f6f791c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ private UGPhoneNumberFormatProvider()

protected override string ProvideFormat(PhoneNumber phoneNumber, bool international)
{
if (phoneNumber.NationalDestinationCode! == "3" ||
phoneNumber.NationalDestinationCode! == "4")
if (phoneNumber.NationalDestinationCode!.Equals("3", StringComparison.Ordinal) ||
phoneNumber.NationalDestinationCode!.Equals("4", StringComparison.Ordinal))
{
return international ? "## ### ####" : "0## ### ####";
}
Expand Down

0 comments on commit f6f791c

Please sign in to comment.