Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorPilley committed Nov 21, 2024
1 parent 9b5ad83 commit d28453f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhoneNumbers/Formatters/PhoneNumberFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<char> ar = stackalloc char[arSize];
Expand Down

0 comments on commit d28453f

Please sign in to comment.