diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-01-04 16:49:51 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | ef78c9bf5a40b8be033a4479a60261da743feeec (patch) | |
tree | 5039ac8f10d589a87adb14df89ef34969af34132 /tools/gendata.js | |
parent | cd04c4c888f64d2d13bc17f722bd896b22acfe5c (diff) | |
download | table-battles-ef78c9bf5a40b8be033a4479a60261da743feeec.tar.gz |
Break target lines on "or" as well as ",".
Diffstat (limited to 'tools/gendata.js')
-rw-r--r-- | tools/gendata.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/gendata.js b/tools/gendata.js index a00a3eb..bc7c996 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -98,7 +98,12 @@ function flush_scenario_html() { } function nbsp_target(target) { - return target.split(", ").map(x=>x.replaceAll(" ", "\xa0")).join(", ") + return target + .split(", ") + .map(x=>x.replaceAll(" ", "\xa0")) + .join(", ") + .replaceAll("\xa0or\xa0", " or ") + .replaceAll("\xa0OR\xa0", " OR ") } for (let c of card_records) { |