lint and analysis

This commit is contained in:
2023-12-15 22:46:01 +01:00
parent 55799cbd22
commit b3b1e40b4e
12 changed files with 441 additions and 181 deletions

View File

@@ -11,7 +11,7 @@ function processSteps(steps) {
const focalLengths = new Map();
steps.forEach(step => {
const [_, label, operation, focalLength] = step.match(/([a-z]+)([=-])(\d)?/);
const [, label, operation, focalLength] = step.match(/([a-z]+)([=-])(\d)?/);
const hashed = hashLabel(label);
const destination = boxes[hashed];