From ee8f3b68aa672688e1aa59d713f0b58dbfeba3d7 Mon Sep 17 00:00:00 2001 From: Corey Hickey Date: Tue, 21 Jan 2025 13:50:36 -0800 Subject: [PATCH] allow valid file names for includes This is similar in spirit to: commit 7c99536056a2be4f5c0035c927cc340aadc76e30 Author: Zephaniah E. Loss-Cutler-Hull Date: Wed 2017-11-08 21:00:36 Allow uppercase letters in file names. Per RFC 1035, we should be able to use any character in includes, except for: * whitespace, which delimits items in an entry * semicolon, which starts a comment https://datatracker.ietf.org/doc/html/rfc1035#section-5.1 --- bin/gitzone | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/gitzone b/bin/gitzone index 612ba59..05c684b 100755 --- a/bin/gitzone +++ b/bin/gitzone @@ -131,8 +131,8 @@ sub check_what_changed { $_ = git "diff --raw --abbrev=40 ". ($new ? "$old..$new" : $old); } - # parse diff output, add only valid zone names to %files for parsing - $files{$1} = 0 while m,^:(?:[\w.]+\s+){5}(?:[A-Za-z0-9./-]+\s+)?([A-Za-z0-9./-]+)$,gm; + # parse diff output, add only valid zone names or $INCLUDE files to %files for parsing + $files{$1} = 0 while m,^:(?:[\w.]+\s+){5}(?:[A-Za-z0-9./-]+\s+)?([^\s;]+)$,gm; } sub process_files {