Skip to content

Commit

Permalink
Fixes parsing of wdiff output
Browse files Browse the repository at this point in the history
  • Loading branch information
wesalvaro authored Jun 25, 2018
1 parent de56a73 commit d869d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cwdiff
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ab=
color_filter() {
#use RED as an indicator if colors are on
if [[ ${RED} ]]; then
sed -e "s/\[-/$RED/g" -e "s/-\]/$OFF/g" -e "s/{+/$GREEN/g" -e "s/+}/$OFF/g" $1
sed -E -e "s/\[-(.*?)-]/$RED\1$OFF/g" -e "s/\{\+(.*?)\+\}/$GREEN\1$OFF/g" $1
else
cat $1
fi
Expand Down

0 comments on commit d869d91

Please sign in to comment.