more generic number match
This commit is contained in:
parent
63d2b77a2e
commit
c6bf5626ce
@ -36,7 +36,8 @@ export default {
|
||||
.replace(/\x1B\[33m(.*?)\x1B\[0m/g, '<span class="log-number">$1</span>')
|
||||
.replace(/\[1m\x1B\[35m(.*?)\[0m\x1B\[22m/g, '<span class="log-addr">$1</span>')
|
||||
.replace(/\[94m(.*?)\[0m/g, '<span class="log-cmd">$1</span>')
|
||||
.replace(/(\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d{5}\])/g, '<span class="log-time">$1</span>')
|
||||
.replace(/\[90m(.*?)\[0m/g, '<span class="log-debug">$1</span>')
|
||||
.replace(/(\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.[\d]+\])/g, '<span class="log-time">$1</span>')
|
||||
.replace(/\[ INFO\]/g, '<span class="log-info">[ INFO]</span>')
|
||||
.replace(/\[ WARN\]/g, '<span class="log-warning">[ WARN]</span>')
|
||||
.replace(/\[ERROR\]/g, '<span class="log-error">[ERROR]</span>')
|
||||
|
Loading…
Reference in New Issue
Block a user