arkayenro / arkinventory

A World of Warcraft Inventory mod for Retail, Burning Crusade, and Classic
108 stars 14 forks source link

Rules problem with the Tooltip focntion when the tooltip have space or hyphen (-) #1892

Closed AshLeBlanc closed 3 months ago

AshLeBlanc commented 4 months ago

Hello i'm doing a simple rule like:

tt("Gemme prismatique") image

and it works perfectly but when i try with this:

tt("méta - gemme") imageww

it doesn't work.. someone know how to do it?

Thanks in advance

PyroPope commented 4 months ago

I don't think its the hyphen, I have not been able to get it to work with Tinker Gems either. i think the Meta, Cog, and Tinker gems are all not working?

AshLeBlanc commented 4 months ago

I don't think its the hyphen, I have not been able to get it to work with Tinker Gems either. i think the Meta, Cog, and Tinker gems are all not working?

I don’t know it’s strange normally when you use the Tooltip rule is suppose to copie the word you choose from it, there is maybe something blocking it with the meta gemme and I think there is a way to force it…. at least I hope!? (Sorry for my English)

arkayenro commented 4 months ago

the minus character is a regex magic character so it needs to be escaped

use tt("méta%-gemme")

AshLeBlanc commented 4 months ago

the minus character is a regex magic character so it needs to be escaped

use tt("méta%-gemme")

OMG it worked thank you so much !! nad thanks for keeping this amazing addon alive.