change formating

This commit is contained in:
jb-alvarado 2021-02-04 17:32:09 +01:00
parent 439e84267e
commit af965e284e

View File

@ -60,8 +60,8 @@ export default {
filters: {
formatStr (text) {
return text
.replace(/("\[.*")/g, '<span class="log-cmd">$1</span>')
.replace(/("\/.*")/g, '<span class="log-path">$1</span>')
.replace(/(".*")/g, '<span class="log-cmd">$1</span>')
.replace(/(\/.*)/g, '<span class="log-path">$1</span>')
.replace(/(\/[\w\d.\-/]+\n)/g, '<span class="log-path">$1</span>')
.replace(/((tcp|https?):\/\/[\w\d.:]+)/g, '<span class="log-url">$1</span>')
.replace(/(\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}[0-9,.]+\])/g, '<span class="log-time">$1</span>')