Skip to content

Commit

Permalink
match date at the beginning of log entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Dawson committed Sep 29, 2023
1 parent 8bb5522 commit 8bfd766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/cylc/log/Log.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default {
})
},
stripTimestamp (logLine) {
const regex = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|[+-][\d:]+)?\s(.*\s*)/
const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|[+-][\d:]+)?\s(.*\s*)/
this.match = logLine.match(regex)
if (this.match) {
return this.match[1]
Expand Down

0 comments on commit 8bfd766

Please sign in to comment.