diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 61cf0d61..70e237cd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,7 +31,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: 1.24.4 + go-version: 1.24.5 check-latest: true - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cbc63ef6..fad90e06 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,7 +54,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.24.4" + go-version: "1.24.5" check-latest: true - name: Checkout code uses: actions/checkout@v4 @@ -77,7 +77,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.24.4" + go-version: "1.24.5" check-latest: true - name: Generate dependencies run: make fake_assets shared_key.pem shared_cert.pem diff --git a/internal/support/web/url.go b/internal/support/web/url.go index 70aec60f..c4c839ca 100644 --- a/internal/support/web/url.go +++ b/internal/support/web/url.go @@ -12,7 +12,7 @@ const ( ) // Standard URL regex pattern to match http/https URLs -var urlRegex = regexp.MustCompile(`(https?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+~#?&//=]*[^.]))`) +var urlRegex = regexp.MustCompile(`(https?://[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}[-a-zA-Z0-9()@:%_+.~#?&/=]*/?(?:[-a-zA-Z0-9@%_+~#?&/=]|\b))`) // MarkURLs marks URLs in the logEvent message with special markers func MarkURLs(logEvent *container.LogEvent) bool {