Procházet zdrojové kódy

fmt: regex raw string

jamesread před 2 roky
rodič
revize
d13f0a7acf
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      internal/stringvariables/entities.go

+ 1 - 1
internal/stringvariables/entities.go

@@ -9,7 +9,7 @@ import (
 var r *regexp.Regexp
 
 func init() {
-	r = regexp.MustCompile("{{ *?([a-zA-Z0-9_]+)\\.([a-zA-Z0-9_]+) *?}}")
+	r = regexp.MustCompile(`{{ *?([a-zA-Z0-9_]+)\.([a-zA-Z0-9_]+) *?}}`)
 }
 
 func ReplaceEntityVars(prefix string, source string) string {