From fceaf86186a2e53094a0c04332341ab2f2aeaa12 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sun, 24 Nov 2019 16:59:50 +0100 Subject: [PATCH] parse 'Q' hints --- parse/hint.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/parse/hint.js b/parse/hint.js index a5372bd1..04fb5905 100644 --- a/parse/hint.js +++ b/parse/hint.js @@ -14,13 +14,6 @@ const codesByIcon = Object.assign(Object.create(null), { // ] const parseHint = (profile, h, icons) => { // todo: C - // todo: - // { type: 'Q', - // code: '', - // icoX: 11, - // txtN: - // 'RE 3132: Berlin Zoologischer Garten - Brandenburg Hbf: Information. A railway carriage is missing', - // sIdx: 4 } const text = h.txtN && h.txtN.trim() || '' const icon = 'number' === typeof h.icoX && icons[h.icoX] || null @@ -51,7 +44,10 @@ const parseHint = (profile, h, icons) => { } } - if (h.type === 'D' || h.type === 'U' || h.type === 'R' || h.type === 'N' || h.type === 'Y') { + if ( + h.type === 'D' || h.type === 'U' || h.type === 'R' || h.type === 'N' || + h.type === 'Y' || h.type === 'Q' + ) { // todo: how can we identify the individual types? // todo: does `D` mean "disturbance"? return {