Small improvement for replace command

This commit is contained in:
Zachary Yedidia
2019-08-11 14:50:28 -07:00
parent ac3a5154c0
commit 5b18edf865
3 changed files with 24 additions and 13 deletions

View File

@@ -407,3 +407,7 @@ func Clamp(val, min, max int) int {
func IsNonAlphaNumeric(c rune) bool {
return !unicode.IsLetter(c) && !unicode.IsNumber(c)
}
func ParseSpecial(s string) string {
return strings.Replace(s, "\\t", "\t", -1)
}