mucklet / mucklet-client

Web client for Mucklet.com, a textual world of roleplay.
Apache License 2.0
5 stars 8 forks source link

Wildcard search filter #316

Open anisus opened 1 week ago

anisus commented 1 week ago

Issue

It should be possible to use asterisk (*) as Wildcard in filter searches of the Awake list. This is handled in CharFilter.js

In addition, the help filter text in HelpFilterComponent.js should be updated to include a Wildcard section:

Wildcard Putting an asterisk () within a criteria, will act as a wildcard. `taur` will match characters with the species "centaur", "minotaur", or "leotaur".

See discussion on Wolfery forum: https://forum.wolfery.com/t/feature-wildcard-support-in-character-search/2696

Notes

(The reason why space should not be matched by names, species, or gender, is because the matching for those fields are made per word and not by full expression like with tags. Eg: size matches the gender Variable size female but not the tag size difference)