diff --git a/assets/components/LogViewer/SimpleLogItem.vue b/assets/components/LogViewer/SimpleLogItem.vue index 9e6ee9d8..e7399881 100644 --- a/assets/components/LogViewer/SimpleLogItem.vue +++ b/assets/components/LogViewer/SimpleLogItem.vue @@ -5,8 +5,8 @@
markSearch(ansiConvertor.toHtml(value)); +const urlPattern = /(https?:\/\/[^\s]+)/g; +const linkify = (text: string) => + text.replace(urlPattern, (url) => `${url}`); + diff --git a/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap b/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap index 57c922b2..c44943cc 100644 --- a/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap +++ b/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap @@ -3,15 +3,15 @@ exports[` > render html correctly > should render dates with 12 hour style 1`] = ` "