Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use raw string (...) with regexp.MustCompile #3358

Open
wants to merge 1 commit into
base: drone
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion operator/runner/env.go
Expand Up @@ -153,7 +153,7 @@ func linkEnviron(repo *core.Repository, build *core.Build, system *core.System)

// regular expression to extract the pull request number
// from the git ref (e.g. refs/pulls/{d}/head)
var re = regexp.MustCompile("\\d+")
var re = regexp.MustCompile(`\d+`)

// helper function combines one or more maps of environment
// variables into a single map.
Expand Down
2 changes: 1 addition & 1 deletion store/build/build.go
Expand Up @@ -26,7 +26,7 @@ import (

// regular expression to extract the pull request number
// from the git ref (e.g. refs/pulls/{d}/head)
var pr = regexp.MustCompile("\\d+")
var pr = regexp.MustCompile(`\d+`)

// New returns a new Buildcore.
func New(db *db.DB) core.BuildStore {
Expand Down