We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9855bf commit e9698cfCopy full SHA for e9698cf
sqltemplate_pongo2.go
@@ -76,7 +76,7 @@ func (sqlTemplate *Pongo2Template) paresSqlTemplate(filename string, filepath st
76
if err != nil {
77
return err
78
}
79
- sqlIdStr := filename + "." + strings.TrimSpace(strings.Replace(strings.Replace(string(sqlId), "\r", ""), "\n", ""))
+ sqlIdStr := filename + "." + strings.TrimSpace(strings.ReplaceAll(strings.ReplaceAll(string(sqlId), "\r", ""), "\n", ""))
80
sqlTemplate.checkNilAndInit()
81
sqlTemplate.Template[sqlIdStr] = sqlt
82
sqlId = nil
0 commit comments