EMI

EMI

1M Downloads

Allow searching with `_` for mod entries

SiverDX opened this issue ยท 4 comments

commented

image

Searching:
image

Result:
image

When I just search @create I can find the entries (but also stuff from other mods that have create in their mod-id

Another example: create_enchantment_industry - if I search for industry I can find the entries but not if the search string includes _

commented

This is because you're not actually searching mod ids, you're searching mod names, which have spaces.

commented

Oh yeah, that is true - can see that it works when I do that
Was a bit confused by the coloring:

image

commented

I think that's not actually working, if you want to match things with spaces you can do @create @enchantment @industry to match all the words but no spaces, or use a regex search like @/create enchantment industry/, to actually match the spaces, which isn't necessary in most cases. Do be noted that using regex is less performant, but it is a solution for pattern matching searches.

commented

Oh yeah I can see that, seemed like the last entry or so was what actually filtered the rest out (since no mod had a similar entry in their name)

Thanks, guess this can be closed then