netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Déjà Vu isn't shown correctly in the log

Open queueseven opened this issue 11 years ago • 3 comments

When you play Déjà Vu, the text in the log pane gets messed up:

ThePlayer plays DéjàVu.

I'm sure it's because of the javascript regex that is used to find the card names:

(defn add-image-codes [text]
  (reduce #(.replace %1 (js/RegExp. (str "\\b" (:title %2) "\\b") "g") (str "[" (:title %2) "~"(:code %2) "]")) text (prepared-cards)))

If someone knows a quick fix I would be glad to hear; otherwise I try to fix this tonight.

queueseven avatar Jul 30 '15 12:07 queueseven

I get this only on my Windows dev machine for any cards with non-standard characters, like Draco or Shi.Kyu. It is not an issue on live from what I've seen.

nealterrell avatar Jul 30 '15 13:07 nealterrell

Can confirm. Only Windows seems to be affected. Some kind of encoding issue :-(

queueseven avatar Jul 30 '15 14:07 queueseven

Only Windows seems to be affected.

Typical!!

JoelCFC25 avatar Jul 30 '15 14:07 JoelCFC25