Skip to content

Commit eed7878

Browse files
Use strings.ReplaceAll instead of strings.Replace -1 (#9)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
1 parent cc117d0 commit eed7878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func (q Quote) ID(name string) string {
1414
if end > -1 {
1515
name = name[:end]
1616
}
17-
return "`" + strings.Replace(name, "`", "``", -1) + "`"
17+
return "`" + strings.ReplaceAll(name, "`", "``") + "`"
1818
}
1919

2020
func (q Quote) Value(v interface{}) string {

0 commit comments

Comments
 (0)