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
1 changed files with 5 additions and 5 deletions

View File

@ -555,15 +555,15 @@ html_out() {
fi fi
} }
# Removes on printable chars in CSV, JSON, HTML, see #2330 # Removes non-printable chars in CSV, JSON, HTML, see #2330
sanitize_fileout() { 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) # Removes non-printable chars in terminal output (log files)
# We need to keep the icolor ANSI escape code, see #2330 # We need to keep the color ANSI escape code x1b, o33, see #2330
sanitize_termout() { 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. # This is intentionally the same.