Explorar o código

bugfix: Allow . in enxtended variable paths

jamesread %!s(int64=2) %!d(string=hai) anos
pai
achega
a54ea505c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/stringvariables/entities.go

+ 1 - 1
internal/stringvariables/entities.go

@@ -11,7 +11,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 {