Bug - Fixed Setting CCS on gCLI & naming clashes

StDoodle

Minion
Tested using latest daily as of post (r9973) on Windows XP.

If you have two CCS's set up, and one begins with the name of the other, setting the CCS on the gCLI may choose the incorrect CCS.

For example, I have a CCS entitled "slime" as well as a CCS entitled "Slime_Testing." Typing "ccs slime" on the gCLI will set my CCS to "Slime_Testing."
 

slyz

Developer
It boils down to:
PHP:
parameters = parameters.toLowerCase();
...
if ( script.toLowerCase().indexOf( parameters ) != -1 )
It simply takes the first CCS that contains the parameter you entered... would you rather have a "has too many matches" error?
 

xKiv

Active member
I think Theraze means "first have a loop that checks for exact equals(), only then the current loop that checks for prefix".
 
Top