flowdee / hearthstone-cards

Hearthstone Cards for WordPress automatically adds an overlay to written card names and displays the associated image while hovering them.
https://wordpress.org/plugins/hearthstone-cards/
GNU General Public License v3.0
7 stars 4 forks source link

Some cards not working/showing using pt-BR language #51

Open danielvetromilla opened 8 years ago

danielvetromilla commented 8 years ago

Cards with ID ending with "e" letter (e.g. Card ID: EX1_128e) displays a black card image with no information at all.

Take this example: [Ocultar]

It will display this broken image:

Card ID 128e

But if i remove the "e" letter from its ID, it shows correctly:

Card ID 128

This issue was tested using pt-BR language.

danielvetromilla commented 8 years ago

To temporary workaround this in my website, i've added a small regex replace to remove the last ocurrence of "e" letter in card id string.

- hearthstone-cards/public/assets/js/public.js var card_id = $( this ).data( "hcfw-card-id" ).replace(/e$/, '');

flowdee commented 8 years ago

50