Make diff-remove-abspath canonifier match on non-whitespace paths only

This avoids swallowing multiple separate paths separated by unrelated
content into one substitution, like here:

orig_p=59856<...>/tcp] -> orig_p=59856/tcp, resp_h=192.150.187.43, resp_p=80/tcp]
This commit is contained in:
Christian Kreibich 2020-11-23 18:34:07 -08:00
parent 3ca804421e
commit 3984d99a86

View file

@ -9,4 +9,4 @@ else
fi fi
$sed 's#/+#/#g' | \ $sed 's#/+#/#g' | \
sed 's#/\([^/]\{1,\}/\)\{1,\}\([^/]\{1,\}\)#<...>/\2#g' $sed 's#/([^\t :/]{1,}/){1,}([^\t :/]{1,})#<...>/\2#g'