MSP-5014 Use raw string for regex

This commit is contained in:
Синельник Тимур Романович committed 2025-03-21 10:08:25 +03:00
1 parent 418c4e757f
commit befbd51522
1 file changed
+1 -1
+1 -1
View File
@@ -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 {