Lazier regex for finding logs with square brackets

This commit is contained in:
jaknapper 2025-04-07 18:07:51 +01:00
parent 26d488e75f
commit f5a41f76f3

View file

@ -153,7 +153,7 @@ export default {
let response = await axios.get(this.logFileURI);
let lines = response.data.split("\n");
let logs = [];
let regexp = /\[(.+)\] \[(.+)\] (.*)$/;
let regexp = /\[(.+?)\] \[(.+?)\] (.*)$/;
for (let line of lines) {
if (line.length > 0) {
let m = line.match(regexp);