diff options
author | Pascal Quantin <pascal@wireshark.org> | 2020-12-15 22:00:49 +0100 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2020-12-16 04:48:53 +0000 |
commit | 099554adb0c182c27df7cd47d9efe4324c6ea5c3 (patch) | |
tree | f81de00d0d5edca7eaac7cfe2adccb6738e73686 /tools | |
parent | 3e3194092ccb201208f214461f060d2cc8a87e3c (diff) |
extract_asn1_from_spec.pl: fix parsing with CRLF line ending
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/extract_asn1_from_spec.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/extract_asn1_from_spec.pl b/tools/extract_asn1_from_spec.pl index e453dce8df..e928736a88 100755 --- a/tools/extract_asn1_from_spec.pl +++ b/tools/extract_asn1_from_spec.pl @@ -96,7 +96,7 @@ sub extract_asn1 { syswrite OUTPUT_FILE,"-- "."$version"."\n"; } - if (($line =~ /^END$/) && (defined fileno OUTPUT_FILE)){ + if (($line =~ /^END[\r\n]/) && (defined fileno OUTPUT_FILE)){ syswrite OUTPUT_FILE,"$line"; close(OUTPUT_FILE); $is_asn1 = 0; |