Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Nigeria (NG): postal code format is out of date since the 2026 digital postcode

オープン 初心者向け
#255 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
領域
data

調査の方向性

まず、https://chromium-i18n.appspot.com/ssl-address/data/NG に対応するナイジェリア (NG) の住所データエントリを見つけ、近隣の国のエントリがどのように検証またはテストされているかを確認します。現在の6桁のパターンを、提示されたNDAPS形式および例と比較します。新しい形式と従来の6桁コードが検証され、郵便番号のURLと例が更新されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The address data for Nigeria still describes the old six-digit postal code:

https://chromium-i18n.appspot.com/ssl-address/data/NG

"zip": "\d{6}", "zipex": "930283,300001,931104", "posturl": "http://www.nigeriapostcodes.com/"

On 1 October 2026 Nigeria launched the National Digital Alphanumeric Postcode System (NDAPS), which gives every building an 11-character code such as FC 02 A09 DB 09 or EK-01-A03-FK-01. Addresses carrying the new code fail validation against \d{6}.

Format, from NIPOST's developer documentation:

Segment Example Shape
State EK 2 letters
LGA 01 2 digits, 01 to 99
District A03 3 letters or digits
Area FK 2 letters
Building unit 01 2 digits, 01 to 99

It is written with hyphens (EK-01-A03-FK-01), with spaces (EK 01 A03 FK 01), or compact (EK01A03FK01).

Sources

Suggested data

A pattern that accepts the new code and keeps the six-digit one valid:

[A-Z]{2}[ -]?(?:0[1-9]|[1-9]\d)[ -]?[A-Z\d]{3}[ -]?[A-Z]{2}[ -]?(?:0[1-9]|[1-9]\d)|\d{6}
  • zipex: FC 02 A09 DB 09,EK-01-A03-FK-01,930283
  • posturl: https://postcode.gov.ng/

I maintain open-source parsers for the format with shared test vectors, which may help when checking the pattern: https://github.com/Adeniyikayodee/ng-postcode/blob/main/spec/vectors.json

主要言語
C++
スター
629
フォーク
109
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/libaddressinput のほかの issue

google/libaddressinput の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。