Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorPilley committed Nov 21, 2024
1 parent 3b41590 commit 3ff1ab0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"Oceanian",
"Pilley",
"Sint",
"Tapi",
"Xunit"
],
"cSpell.enabledLanguageIds": [
Expand Down
1 change: 0 additions & 1 deletion NuGet.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ phoneNumber.ToString("E.123"); // +44 114 272 6444 (E.123 internati
phoneNumber.ToString("N"); // (0114) 272 6444 (E.123 national notation format)
phoneNumber.ToString("RFC3966"); // tel:+44-114-272-644 (RFC3966 format)
phoneNumber.ToString("TAPI"); // +44 (114) 272 6444 (Telephony Application Programming Interface (TAPI) format)
```

Builds for:
Expand Down
4 changes: 2 additions & 2 deletions src/PhoneNumbers/Formatters/PhoneNumberFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected static string FormatInternational(
ar[arPos++] = Chars.OpenParenthesis;
}

bool ndcWrapped = false;
var ndcWrapped = false;
var nsnPos = 0;

for (var i = 0; i < nsnMask.Length; i++)
Expand All @@ -85,7 +85,7 @@ protected static string FormatInternational(
ar[arPos++] = Chars.CloseParenthesis;
ndcWrapped = true;
}

if (nsnMask[i] == Chars.Hash)
{
ar[arPos++] = phoneNumber.NationalSignificantNumber[nsnPos++];
Expand Down

0 comments on commit 3ff1ab0

Please sign in to comment.