Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Apr 17, 2020
1 parent adc2a7e commit 668f0c7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/fetch-iana.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@ https.get(URL, { headers: HEADERS }, function onResponse (res) {
rows.forEach(function (row) {
var obj = row.reduce(reduceRows, {})

if (obj.description !== 'Unassigned' && obj.value !== '306') {
codes[obj.value] = obj.description
// skip unassigned codes
if (obj.description === 'Unassigned') {
return
}

// skip retired 306 code
if (obj.value === '306') {
return
}

codes[obj.value] = obj.description
})

write(path.join(__dirname, '../src/iana.json'), codes)
Expand Down

0 comments on commit 668f0c7

Please sign in to comment.