fmt: regex raw string

This commit is contained in:
jamesread 2024-02-23 21:36:28 +00:00
parent b747199528
commit d13f0a7acf
1 changed files with 1 additions and 1 deletions

View File

@ -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 {