in read_input/format.js [129:147]
function checkVerticalRange(input) {
const vertical = [];
const output = input.map((item) => {
const newItem = {};
for (const [key, val] of Object.entries(item)) {
const newKey = rmBracket(key, "[]");
const newval = rmBracket(val, "[]");
newItem[newKey] = newval;
if (
val.match(/\[\s*(?:v|vertical)\s*\]/) ||
key.match(/\[\s*(?:v|vertical)\s*\]/)
) {
vertical.push(newKey);
}
}
return newItem;
});
return [vertical, output];
}