mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Fix console command formatting filter
It would previously refuse to format anything starting with >>, but now it specifically filters ">> " and ">>> " to match the server, so other lines starting with ">>" such as ">>>>>memeing" is formatted. (This is, if you were wondering, in preparation for an implementation of greentext)
This commit is contained in:
parent
19d3e7aa2f
commit
28820d2387
|
|
@ -521,7 +521,7 @@ var Tools = {
|
|||
parseMessage: function (str) {
|
||||
str = Tools.escapeHTML(str);
|
||||
// Don't format console commands (>>).
|
||||
if (str.substr(0, 8) === '>>') return str;
|
||||
if (str.substr(0, 9) === '>> ' || str.substr(0, 13) === '>>> ') return str;
|
||||
// Don't format console results (<<).
|
||||
if (str.substr(0, 9) === '<< ') return str;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user