Skip to content

Commit

Permalink
Merge pull request #119 from ethereum-optimism/jg/fix_lint
Browse files Browse the repository at this point in the history
Fix S1007: should use raw string in params
  • Loading branch information
trianglesphere authored Aug 22, 2023
2 parents 628d300 + e081fac commit bb04c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var gitTag string

// Override the version variables if the gitTag was set at build time.
var _ = func() (_ string) {
semver := regexp.MustCompile("^v([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?$")
semver := regexp.MustCompile(`^v([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$`)
version := semver.FindStringSubmatch(gitTag)
if version == nil {
return
Expand Down

0 comments on commit bb04c5f

Please sign in to comment.