From d28453f4a27791a160d10a25a90c5ffeb9cf697b Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Thu, 21 Nov 2024 10:08:35 +0000 Subject: [PATCH] fix --- src/PhoneNumbers/Formatters/PhoneNumberFormatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhoneNumbers/Formatters/PhoneNumberFormatter.cs b/src/PhoneNumbers/Formatters/PhoneNumberFormatter.cs index b9ee9f42..66656a8a 100644 --- a/src/PhoneNumbers/Formatters/PhoneNumberFormatter.cs +++ b/src/PhoneNumbers/Formatters/PhoneNumberFormatter.cs @@ -44,7 +44,7 @@ protected static string FormatInternational( + 1 // add one for the + appended to the calling code + phoneNumber.Country.CallingCode.Length + (charBetweenCallingCodeAndNsn != Chars.Null ? 1 : 0) - + (wrapNdc ? 2 : 0) + + (wrapNdc ? 2 : 0) // add 2 for the parenthesis if wrapping the NDC + nsnMask.Length; Span ar = stackalloc char[arSize];