google / google/libaddressinput

Stop duplicating the postal code prefix in the format

Open
#71 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
624
Forks
109
PR merge metrics
No merged PRs in 30d

Description

If the postal code prefix is already declared ("postprefix"), there is no need to also have it in the format string ("fmt").

Postal code prefixes are usually appended only for international mail, so not having the prefix in the format string would allow a formatter to choose when to add the prefix (for international, but not domestic sending, etc).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.