demonnic / Highlighter

A game agnostic tool for highlighting categories of items in incoming lines
4 stars 1 forks source link

strange behaviour on syntax mismatch #7

Open misvae opened 2 years ago

misvae commented 2 years ago
hl item add shamrock item_important#shamrock
(Highlighter): Added shamrock to category: shamrock item_important

there is no shamrock category on my config.

demonnic commented 2 years ago

gonna see if I can reproduce this today.

demonnic commented 2 years ago

Finally got to circle back to this issue, and looking at the message it added shamrock to the group shamrock item_important

the ability for groups to have spaces in them is why I use the # delimiter in the alias. I'll double check to see if it creates a group when it doesn't exist or if throwing an error here would be more appropriate.

demonnic commented 2 years ago

hmm, yeah, it's throwing an error if I try to add something to a category that doesn't exist, so at some point you may've added a category shamrock item_important and it's gone into that.