This PR modifies the filter search function to ignore any spaces in the searched text, as well as the user-given search query.
I noticed that many mods have inconsistent names within a single mod (mod group), especially with different placement of spaces between the folder name (group name) and mod names within the folder. I constantly battle with searching in Stardrop by placing spaces in random places until the search finds the mod I am looking for.
This PR fixes this problem for me entirely. Now, I can search for whatever form of the name I remember and be sure to find the mod I am looking for. And then optionally click on one mod to show the whole mod group (see #150), if necessary.
Example:
The user searches for "copper still" since he remembers that is the name of the mod using the filter "Mod Group".
The individual mods are named "[CP] Copper Still", "[JA] Copper Still", etc. indeed, but the folder name is "CopperStill".
The search returns empty list, but with this PR included, the search correctly finds the mod group.
This PR modifies the filter search function to ignore any spaces in the searched text, as well as the user-given search query.
I noticed that many mods have inconsistent names within a single mod (mod group), especially with different placement of spaces between the folder name (group name) and mod names within the folder. I constantly battle with searching in Stardrop by placing spaces in random places until the search finds the mod I am looking for.
This PR fixes this problem for me entirely. Now, I can search for whatever form of the name I remember and be sure to find the mod I am looking for. And then optionally click on one mod to show the whole mod group (see #150), if necessary.
Example:
Tested on Linux, not tested on MacOS or Windows.