diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-28 12:24:57 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-02 00:27:02 +0100 |
commit | 4beb59206e3471ba971d1974d15d0a8c8b56d7c7 (patch) | |
tree | c4a10320315af9b24edbd3170a768bfc38a8ad7c /play.js | |
parent | ac1d0084681864a652a462acb79a82fa2ab5529f (diff) | |
download | 1989-dawn-of-freedom-4beb59206e3471ba971d1974d15d0a8c8b56d7c7.tar.gz |
Remove card asterisk in sub_card_name instead of all asterisks.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -742,7 +742,7 @@ function on_update() { function sub_card_name(_match, p1) { let x = p1 | 0 - return `<span class="card_name" onmouseenter="on_focus_card_tip(${x})" onmouseleave="on_blur_card_tip()">${cards[x].name}</span>` + return `<span class="card_name" onmouseenter="on_focus_card_tip(${x})" onmouseleave="on_blur_card_tip()">${cards[x].name.replace("*", "")}</span>` } function sub_power_card_name(_match, p1) { @@ -806,7 +806,6 @@ function on_log(text) { p.className = "h3" } - text = text.replace(/([a-zA-Z])\*/g, "$1") p.innerHTML = text return p } |