From a34ed6fcffef2c2ba625373b4729f0e2f292cd33 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Tue, 25 May 2010 22:27:00 +0000 Subject: Handle lines ending in \r\n. Fixes Bug #4780 See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4780 svn path=/trunk/; revision=32956 --- text2pcap-scanner.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text2pcap-scanner.l') diff --git a/text2pcap-scanner.l b/text2pcap-scanner.l index ed81b23c8f..b47edadc3f 100644 --- a/text2pcap-scanner.l +++ b/text2pcap-scanner.l @@ -61,9 +61,9 @@ hexdigit [0-9A-Fa-f] directive #TEXT2PCAP.* comment #[^W].* byte [0-9A-Fa-f][0-9A-Fa-f][ \t] -byte_eol [0-9A-Fa-f][0-9A-Fa-f]\n +byte_eol [0-9A-Fa-f][0-9A-Fa-f]\r?\n offset [0-9A-Fa-f]+[: \t] -offset_eol [0-9A-Fa-f]+\n +offset_eol [0-9A-Fa-f]+\r?\n text [^ \n\t]+ mailfwd > eol \r?\n\r? -- cgit v1.2.1