diff --git a/inxi b/inxi index 7d5191b..aa68dde 100755 --- a/inxi +++ b/inxi @@ -779,7 +779,7 @@ log_function_data() # Create any required line breaks and strip out escape color code, either ansi (case 1)or irc (case 2). # This pattern doesn't work for irc colors, if we need that someone can figure it out if [[ $B_LOG_COLORS != 'true' ]];then - echo -e "${spacer}$logged_data" | sed 's/\x1b\[[0-9]\{1,2\}\(;[0-9]\{1,2\}\)\{0,2\}m//g' >> $LOG_FILE + echo -e "${spacer}$logged_data" | sed -r 's/\x1b\[[0-9]{1,2}(;[0-9]{1,2}){0,2}m//g' >> $LOG_FILE else echo -e "${spacer}$logged_data" >> $LOG_FILE fi