Skip to content

Commit

Permalink
Do case insensitive compare
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen committed Apr 13, 2022
1 parent ab1c968 commit 2537c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome-cli/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int main(int argc, const char * argv[])
NSString *outputFormatString = [[[NSProcessInfo processInfo] environment] objectForKey:@"OUTPUT_FORMAT"];
if (!outputFormatString) {
outputFormat = kOutputFormatText;
} else if ([outputFormatString isEqualToString:@"json"]) {
} else if ([outputFormatString caseInsensitiveCompare:@"json"] == NSOrderedSame) {
outputFormat = kOutputFormatJSON;
} else {
outputFormat = kOutputFormatText;
Expand Down

0 comments on commit 2537c62

Please sign in to comment.