From f6f791c545ef9bf9f981d090ce305333de517ffd Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Sat, 23 Nov 2024 10:31:57 +0000 Subject: [PATCH] Update UGPhoneNumberFormatProvider.cs --- .../Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs b/src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs index a16364a7..fcb788c1 100644 --- a/src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs +++ b/src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs @@ -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## ### ####"; }