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 3942343 commit 5f3f325
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! == "3" ||

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

phoneNumber.NationalDestinationCode! == "4")

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

{
return international ? "## ### ####" : "0## ### ####";
}
Expand Down

0 comments on commit 5f3f325

Please sign in to comment.