Skip to content

Commit

Permalink
max nsn length
Browse files Browse the repository at this point in the history
  • Loading branch information
twcclegg committed Jul 7, 2021
1 parent f8d079e commit 408190d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csharp/PhoneNumbers/PhoneNumberUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class PhoneNumberUtil
// The minimum and maximum length of the national significant number.
internal const int MIN_LENGTH_FOR_NSN = 2;
// The ITU says the maximum length should be 15, but we have found longer numbers in Germany.
internal const int MAX_LENGTH_FOR_NSN = 16;
internal const int MAX_LENGTH_FOR_NSN = 17;
// The maximum length of the country calling code.
internal const int MAX_LENGTH_COUNTRY_CODE = 3;
// We don't allow input strings for parsing to be longer than 250 chars. This prevents malicious
Expand Down

0 comments on commit 408190d

Please sign in to comment.