Skip to content

Commit

Permalink
Fix typo for "additional"
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous authored and niksy committed Jul 10, 2023
1 parent 78e1ec0 commit b1dbcec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions generate-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ const references = [
.map((node) => node.textContent || '')
.map((name) => name.replace('()', ''));

const additinal = [];
const additional = [];
for (const name of list) {
if (name.endsWith('X')) {
additinal.push(name.replace(/X$/, 'x'));
additional.push(name.replace(/X$/, 'x'));
} else if (name.endsWith('Y')) {
additinal.push(name.replace(/Y$/, 'y'));
additional.push(name.replace(/Y$/, 'y'));
} else if (name.endsWith('Z')) {
additinal.push(name.replace(/Z$/, 'z'));
additional.push(name.replace(/Z$/, 'z'));
}
}

return list.concat(additinal);
return list.concat(additional);
}
},
{
Expand Down

0 comments on commit b1dbcec

Please sign in to comment.