Merge pull request #11784 from electron/case-insensitive-comparison-1-8-x

Do case insensitive comparisons
This commit is contained in:
shelley vohr
2018-01-31 13:17:00 -05:00
committed by GitHub

View File

@@ -1378,7 +1378,8 @@ bool IsBlacklistedArg(const base::CommandLine::CharType* arg) {
if (prefix_length > 0) {
a += prefix_length;
std::string switch_name(a, strcspn(a, "="));
std::string switch_name =
base::ToLowerASCII(base::StringPiece(a, strcspn(a, "=")));
for (auto& item : blacklist) {
if (switch_name == item)
return true;