remove comma in tr as it was interpreted as such

This commit is contained in:
Dirk Wetter 2023-03-12 14:52:11 +01:00
parent fab67d0cca
commit 2e33c483dd

View File

@ -555,15 +555,15 @@ html_out() {
fi
}
# Removes on printable chars in CSV, JSON, HTML, see #2330
# Removes non-printable chars in CSV, JSON, HTML, see #2330
sanitize_fileout() {
tr -d '\000-\011,\013-\037' <<< "$1"
tr -d '\000-\011\013-\037' <<< "$1"
}
# Removes on printable chars in terminal output (log files)
# We need to keep the icolor ANSI escape code, see #2330
# Removes non-printable chars in terminal output (log files)
# We need to keep the color ANSI escape code x1b, o33, see #2330
sanitize_termout() {
tr -d '\000-\011,\013-\032,\034-\037' <<< "$1"
tr -d '\000-\011\013-\032\034-\037' <<< "$1"
}
# This is intentionally the same.