From b1dbcec0af2c53c73c98610939c17ea55b380cd8 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Sat, 8 Jul 2023 22:53:31 +0900 Subject: [PATCH] Fix typo for "additional" --- generate-list.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/generate-list.js b/generate-list.js index d9dd6ff..003b1d3 100644 --- a/generate-list.js +++ b/generate-list.js @@ -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); } }, {