From 8472aa2db0ae8a9ae2a74737f768401d34325d35 Mon Sep 17 00:00:00 2001 From: Wayne Starr Date: Thu, 21 Nov 2024 16:48:50 -0700 Subject: [PATCH] fix regex syntax --- src/pkg/utils/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/utils/utils.go b/src/pkg/utils/utils.go index 483ebf1..77897c3 100644 --- a/src/pkg/utils/utils.go +++ b/src/pkg/utils/utils.go @@ -26,8 +26,8 @@ const ( tmpPathPrefix = "maru-" ) -// Regex to match the GitLab repo files api, test: https://regex101.com/r/8Rh0wX/1 -var gitlabAPIRegex = regexp.MustCompile(`\/api\/v4\/projects\/(?\d+)\/repository\/files\/(?[^\/]+)\/raw`) +// Regex to match the GitLab repo files api, test: https://regex101.com/r/mBXuyM/1 +var gitlabAPIRegex = regexp.MustCompile(`\/api\/v4\/projects\/(?P\d+)\/repository\/files\/(?P[^\/]+)\/raw`) // UseLogFile writes output to stderr and a logFile. func UseLogFile() error {