Skip to content

Commit

Permalink
Make "infos" in json not case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
charklie authored May 6, 2024
1 parent 7ea833d commit 98ab489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ fn info(
let parse_json_lists = |set| {
let mut info_set: Vec<InfoItem> = vec![];
for i in get_info(set, use_custom_info_config, custom_info_config_file.clone()) {
let info = match i.as_str() {
let info = match i.to_ascii_lowercase().as_str() {
"os" | "distro" => &distro,
"host" | "hostname" => &hostname,
"shell" => &shell,
Expand Down

0 comments on commit 98ab489

Please sign in to comment.