From 28820d23872eb22c3eab048a1ca6042ef4cdfcd2 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sat, 2 Apr 2016 03:04:04 -0400 Subject: [PATCH] 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) --- js/battledata.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/battledata.js b/js/battledata.js index 0a214f267..dd40f9ffe 100644 --- a/js/battledata.js +++ b/js/battledata.js @@ -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;