Skip to content

Commit

Permalink
fix regex syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed Nov 21, 2024
1 parent 02dd05d commit 8472aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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\/(?<repoId>\d+)\/repository\/files\/(?<path>[^\/]+)\/raw`)
// Regex to match the GitLab repo files api, test: https://regex101.com/r/mBXuyM/1
var gitlabAPIRegex = regexp.MustCompile(`\/api\/v4\/projects\/(?P<repoId>\d+)\/repository\/files\/(?P<path>[^\/]+)\/raw`)

// UseLogFile writes output to stderr and a logFile.
func UseLogFile() error {
Expand Down

0 comments on commit 8472aa2

Please sign in to comment.