-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 GitHub Actions / Build (ubuntu-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (ubuntu-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (ubuntu-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (ubuntu-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (ubuntu-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (windows-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (windows-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (windows-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (windows-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (windows-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (macos-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (macos-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (macos-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (macos-latest)
Check warning on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (macos-latest)
|
||
phoneNumber.NationalDestinationCode! == "4") | ||
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (ubuntu-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (ubuntu-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (ubuntu-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (ubuntu-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (ubuntu-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (windows-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (windows-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (windows-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (windows-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (windows-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (macos-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (macos-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (macos-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (macos-latest)
Check warning on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs GitHub Actions / Build (macos-latest)
|
||
{ | ||
return international ? "## ### ####" : "0## ### ####"; | ||
} | ||
|