修改 - 颜色匹配规则

This commit is contained in:
suwings 2018-05-22 22:32:09 +08:00
parent 704a02645b
commit ad4befa826
2 changed files with 3 additions and 9 deletions

View File

@ -110,10 +110,9 @@
//Minecraft 服务器输出基本颜色
TOOLS.encodeConsoleColor = function (text) {
text = text.replace(/\[/igm, "<span class='color-green'>[&nbsp;</span>");
text = text.replace(/\]/igm, "<span class='color-green'>&nbsp;]</span>");
text = text.replace(/\[/igm, "<span class='color-green'><b>[&nbsp;</b></span>");
text = text.replace(/\]/igm, "<span class='color-green'><b>&nbsp;]</b></span>");
text = text.replace(/INFO/gm, "<span style='color:#03ea0a;'>INFO</span>");
text = text.replace(/WANG/gm, "<span class='color-red'>WANG</span>");
text = text.replace(/(\d{2,}:\d{2,}:\d{2,})/gm, "<span style='color:#017EBC;'> $1 </span>");
RegExpStringArr = [
@ -129,7 +128,6 @@
["\\d{1,3}%", "true", "false",
"Starting Minecraft server on", "--------",
"world_the_end",
"(player\\d{0,1})",
"world_nether",
"Usage",
"Server thread", "Done"

View File

@ -16,11 +16,7 @@
</div>
</div>
<div id="TerminalMinecraft" contenteditable="false">
<span class="color-green">[INFO]</span> MCSM Console Subsystem
<br>
<span class="color-green">[INFO]</span> 欢迎使用,现在正在监听控制台...
<br>
<span class="color-green">[INFO]</span> 现在,服务端的所有标准输出均将输出到此区域..
<span style='color:#03ea0a;'>[ SYSTEM ]</span> MCSM Console Listener...
<br>
</div>
<div class="" style="border-top: 1px solid #585858;">