From 193161797ccde2361cb947ca912f6045818c0be4 Mon Sep 17 00:00:00 2001 From: Joël Simoneau Date: Tue, 25 Mar 2025 09:34:46 -0400 Subject: Flags as acronyms --- play.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'play.js') diff --git a/play.js b/play.js index 6a0fcff..2dabece 100644 --- a/play.js +++ b/play.js @@ -1325,6 +1325,10 @@ function sub_space(match, p1) { return `${n}` } +const F_DS = '' +const F_BK = '' +const F_VE = '' + function on_log(text) { let p = document.createElement("div") let sub_text = "" @@ -1338,6 +1342,10 @@ function on_log(text) { text = text.replace(//g, ">") + text = text.replace(/\bFDS\b/g, F_DS) + text = text.replace(/\bFBK\b/g, F_BK) + text = text.replace(/\bFVE\b/g, F_VE) + if (text.match(/^\.h1 Mongol Invaders/)) { text = text.substring(19) p.className = "h1 mi" -- cgit v1.2.3