Skip to content

Commit

Permalink
Add Mainland China feature (re: #26)
Browse files Browse the repository at this point in the history
Rename CN feature from China to People's Republic of China
Correctly make RC an alias of TW, not CN
  • Loading branch information
quincylvania committed Jul 31, 2020
1 parent a5960b5 commit 1b91466
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/country-coder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ let whichPolygonGetter: any = {};
// The cache for looking up a feature by identifier
let featuresByCode: any = {};

let idFilterRegex = /\bThe\b|\bthe\b|\band\b|\bof\b|[-_ .,()&[\]/]/g;
let idFilterRegex = /\bThe\b|\bthe\b|\band\b|\bof\b|[-_ .,'()&[\]/]/g;

function canonicalID(id: string): string {
return id.replace(idFilterRegex, '').toUpperCase();
Expand Down
Loading

0 comments on commit 1b91466

Please sign in to comment.