From da32b78e9816e119de44564c314fadc51cad5d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Wed, 1 Apr 2026 13:34:40 +0200 Subject: [PATCH] Clearer variables. --- ccc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ccc b/ccc index 47e3266..4517aed 100755 --- a/ccc +++ b/ccc @@ -192,8 +192,9 @@ sub extract_section_numbers { my @sections; # Find section header numbers with Windows lines - while($html =~ /\r\n<[p|P] class=MsoNormal[^>]*>(]*>)?(\d{1,4})/g) { - push @sections, $2; + while($html =~ /\r\n<[pP] class=MsoNormal[^>]*>(]*>)?(\d{1,4})/g) { + my $section_num = $2; + push @sections, $section_num; } return @sections;