diff --git a/esc_seq.go b/esc_seq.go new file mode 100644 index 0000000..0217d2e --- /dev/null +++ b/esc_seq.go @@ -0,0 +1,14 @@ +package logic + +import "strings" + +var EscSeqReplacer = strings.NewReplacer( + `\\`, `\`, + `\n`, "\n", + `\t`, "\t", + `\f`, "\f", + `\r`, "\r", + `\v`, "\v", + `\b`, "\b", + `\a`, "\a", +)