lnav/test/test_pretty_print.sh
Suresh Sundriyal 5cd1da8e1a [pretty] More restrictive IPv4 regex.
The regular expression seems to match arbitrary version strings in
pretty-print view. Adding a more restrictive regular expression,
that should be able to distinguish between valid IPv4 addresses and
arbitrary version strings.
2015-04-19 00:00:43 -07:00

11 lines
454 B
Bash

#! /bin/bash
echo '2015-04-18T13:16:30.003 198.51.100.45 <foo>98.51.100.154</foo>9 198.158.100.4<1054 198.51.100.1546 544.9.8.7 98.542.241.99 19143.2.5.6' | \
run_test ${lnav_test} -n -c ":switch-to-view pretty"
check_output "pretty print not able to properly grok ipv4?" <<EOF
2015-04-18T13:16:30.003 198.51.100.45 (unknown)
<foo>98.51.100.154 (unknown)</foo>
9 198.158.100.4 (unknown)<1054 198.51.100.1546 544.9.8.7 98.542.241.99 19143.2.5.6
EOF