MSP-5014 Use raw string for regex
This commit is contained in:
1 parent
418c4e757f
commit
befbd51522
1 file changed
+1
-1
+1
-1
@@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
semverRegexp = regexp.MustCompile("v([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?$")
|
||||
semverRegexp = regexp.MustCompile(`v([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$`)
|
||||
)
|
||||
|
||||
func GitGet() *cli.Command {
|
||||
|
||||
Reference in new issue
Block a user