PT-2014 - pt-config-diff does not honor case insensitivity flag

- Fixed the proposed fix
- Fixed proposed configuration files
- Added test case
This commit is contained in:
Sveta Smirnova
2025-09-09 19:25:13 +03:00
parent 4e190a34ef
commit f550652dbf
6 changed files with 33 additions and 13 deletions

View File

@@ -294,7 +294,7 @@ sub _normalize_value {
my ($val, $is_dir, $base_path) = @args{qw(value is_directory base_path)};
$val = defined $val ? $val : '';
$val = $alt_val_for{lc($val)} if exists $alt_val_for{lc($val)};
$val = $alt_val_for{uc($val)} if exists $alt_val_for{uc($val)};
if ( $val ) {
if ( $is_dir ) {