Skip to content

Commit

Permalink
remove escape function
Browse files Browse the repository at this point in the history
  • Loading branch information
ErdemOzgen committed Mar 24, 2024
1 parent c066b80 commit 4f59bc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ func UnescapeSpecialchars(str string) string {
// TODO: Implement this function
func EscapeSpecialchars(str string) string {
repl := strings.NewReplacer(
`\t`, `\\t`,
`\r`, `\\r`,
`\n`, `\\n`,
`\t`, `\t`,
`\r`, `\r`,
`\n`, `\n`,
)
return repl.Replace(str)
}
Expand Down

0 comments on commit 4f59bc9

Please sign in to comment.