Skip to content

Fix job log link regex to not include square brackets

Payton Burdette requested to merge 452203-fix-link-regex into master

What does this MR do and why?

Square brackets were considered as part of a job log href output. This MR fixes the regex so they are not included.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshot 2024-04-08 at 4.05.19 PM.png

How to set up and validate locally

demo-job-log:
  stage: demo
  image: bash:latest
  script:
    - echo "blah blah [https://example.invalid/foo] blah blah"
    - echo "blah blah [blah https://example.invalid/foo] blah blah"
    - echo "blah blah [https://example.invalid/foo]blah blah"
    - echo "blah blah [blah https://example.invalid/foo]blah blah"
    - echo "blah blah [https://[2001:DB8::]/foo]"

Test job log output to ensure use-case reported renders correct links.

Related to #452203 (closed)

Merge request reports