aboutsummaryrefslogtreecommitdiff
path: root/filters
diff options
context:
space:
mode:
authorEdOverflow <contact@edoverflow.com>2019-07-13 17:54:59 +0200
committerDrew DeVault <sir@cmpwn.com>2019-07-13 12:28:49 -0400
commit5ea5f914bf10f8718a8d2966a01bd3d07b752e4d (patch)
tree9fd1c09713f6d144c1a28b4de72455dd0b408319 /filters
parentdba16157de96cab2736ca8fbddc1a19fa3667a3f (diff)
Escape plus symbol in hldiff filter.
I was getting errors when using the hldiff filter with aerc because the plus symbol on line 28 wasn't escaped. This commit escapes the plus symbol in the regex on line 28.
Diffstat (limited to 'filters')
-rwxr-xr-xfilters/hldiff2
1 files changed, 1 insertions, 1 deletions
diff --git a/filters/hldiff b/filters/hldiff
index b672e21..a17f17b 100755
--- a/filters/hldiff
+++ b/filters/hldiff
@@ -25,7 +25,7 @@ BEGIN {
} else {
if ($0 ~ /^-/) {
print red $0 reset
- } else if ($0 ~ /^+/) {
+ } else if ($0 ~ /^\+/) {
print green $0 reset
} else if ($0 ~ /^ /) {
print $0