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.
This commit is contained in:
parent
dba16157de
commit
5ea5f914bf
|
@ -25,7 +25,7 @@ BEGIN {
|
||||||
} else {
|
} else {
|
||||||
if ($0 ~ /^-/) {
|
if ($0 ~ /^-/) {
|
||||||
print red $0 reset
|
print red $0 reset
|
||||||
} else if ($0 ~ /^+/) {
|
} else if ($0 ~ /^\+/) {
|
||||||
print green $0 reset
|
print green $0 reset
|
||||||
} else if ($0 ~ /^ /) {
|
} else if ($0 ~ /^ /) {
|
||||||
print $0
|
print $0
|
||||||
|
|
Loading…
Reference in New Issue