RLBot / RLBotGUI

33 stars 25 forks source link

[Fix] Fix bug when tags included empty strings #198

Closed NicEastvillage closed 1 year ago

NicEastvillage commented 1 year ago

The bot King by CodeRed currently has tags:

tags = 1v1, teamplay,

The extra comma results in a empty tag. Since every string contains the empty string, King shows up in all categories.

This fix will make sure we discard tags consisting only of whitespace. Additionally, I changed the category filtering to compare the tags to the entire allowed tag. Before, one tag just had to be a substring of the allowed tag for the bot to be shown.

VirxEC commented 1 year ago

Can u bump the version in setup.py?