fix: remove :xdigit:

This commit is contained in:
Honza Hommer 2020-04-19 23:59:35 +02:00
parent a9c4b8dd1a
commit 74cdcde449
No known key found for this signature in database
GPG Key ID: F1A1FA427709F5EF

View File

@ -58,7 +58,7 @@ teams_send() {
_color="$TEAMS_SKIP_COLOR" _color="$TEAMS_SKIP_COLOR"
;; ;;
esac esac
_color="$(echo "${_color:-$TEAMS_THEME_COLOR}" | tr -cd '[:xdigit:]')" _color="$(echo "${_color:-$TEAMS_THEME_COLOR}" | tr -cd 'a-fA-F0-9')"
_data="{\"title\": \"$_subject\"," _data="{\"title\": \"$_subject\","
if [ -n "$_color" ]; then if [ -n "$_color" ]; then