can you please update your name.trim() of players on server for RTCW | ET games? as i can see its only trims ^(number) tags but skips other ^(symbol).. so names becomes unreadable.. (in fact only combination of ^^ stays as '^' in name) search of players doesnt work with this crap :/ 10x o7
we can update if you specify what exactly you want it to trim it does remove ^(numbers), yes, should it remove ^(any symbol) or not trim anything at all?
yes. you should remove any ^(symbol) exept double (or sequence of) '^'.. here goes the rule like: ^^abc -> ^bc where (bc) is colored.. '^^^a' -> '^^', '^^^^^j' -> '^^^^' and so on.. '^^^abc' -> '^^bc'.. ill try to find color scheme for all symbols.. if you r goin to color names in list. to trim anything or not at all its depends on you search engine. does it use trimmed names or not?..
we don't support coloring yet so we want the stripped names (which are used for search) to contain only user-visible symbols. So are you saying that a nickname ^^abc actually displays as ^bc in-game?
so the rule is, if I understand you correctly, to remove all ^symbols, doing only one pass (so ^^abc does not end up being c, and ^ab^^cd will be visible as b^d).