netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Trashing [Hellion Alpha Test] prints incorrectly in chat

Open GordonsBeard opened this issue 11 years ago • 5 comments

When Ed Kim accessed Hellion Alpha Test from R&D it was automatically trashed by the Runner, and then printed this to the chatlog:

image

GordonsBeard avatar Dec 04 '15 04:12 GordonsBeard

This happens any time the card is printed, even playing the card from hand will cause the incorrect text.

GordonsBeard avatar Dec 07 '15 18:12 GordonsBeard

@queueseven is going to have to chime in here, he did the card name highlighting.

nealterrell avatar Dec 08 '15 02:12 nealterrell

Problem lies in the add-image-codes-impl function. The regex finds Alpha inside Hellion Alpha Test and links that card instead. So you get [Hellion [Alpha~04087] Test~04031] instead of [Hellion Alpha Test~04031].

Tried to work out a fix but my regex fu is not strong.

Saintis avatar Dec 17 '15 11:12 Saintis

Also tried looking at this, but didn't have enough willpower today to perserve through and pick it apart. For brave souls looking to fix this, the regex in question is here.

zaroth avatar Mar 14 '16 12:03 zaroth

Fixed by #1456.

zaroth avatar May 05 '16 10:05 zaroth