From 0d3bc033f8ebf9f9700f190fe00217ee36ce883f Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Sat, 25 Nov 2023 16:37:01 +0100 Subject: die colors --- play.js | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index 0cdc0fe..1ff0d02 100644 --- a/play.js +++ b/play.js @@ -525,20 +525,24 @@ function sub_us_state_name(_match, p1, _offset, _string) { // TODO blue d4, red d6, white d8 const ICONS = { - B0: '', - B1: '', - B2: '', - B3: '', - B4: '', - B5: '', - B6: '', - W0: '', - W1: '', - W2: '', - W3: '', - W4: '', - W5: '', - W6: '', + B1: '', + B2: '', + B3: '', + B4: '', + D1: '', + D2: '', + D3: '', + D4: '', + D5: '', + D6: '', + W1: '', + W2: '', + W3: '', + W4: '', + W5: '', + W6: '', + // W7: '', + // W8: '', PR: '', YR: '', RR: '', @@ -574,7 +578,7 @@ function on_log(text) { // eslint-disable-line no-unused-vars text = text.replace(/\b[PYR]R\b/g, sub_icon) text = text.replace(/\b[PYR]C|PYC\b/g, sub_icon) text = text.replace(/\b[BC]M|GV|RX\b/g, sub_icon) - text = text.replace(/\b[BW]\d\b/g, sub_icon) + text = text.replace(/\b[BDW]\d\b/g, sub_icon) if (text.match(/^\.h1/)) { text = text.substring(4) -- cgit v1.2.3