Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b852a commit 440d4f4Copy full SHA for 440d4f4
src/node_config_file.cc
@@ -23,7 +23,7 @@ std::optional<std::string_view> ConfigReader::GetDataFromArgs(
23
} else if (it->starts_with(flag_path)) {
24
// Case: "--experimental-config-file=foo"
25
if (it->size() > flag_path.size() && (*it)[flag_path.size()] == '=') {
26
- return it->substr(flag_path.size() + 1);
+ return std::string_view(*it).substr(flag_path.size() + 1);
27
}
28
} else if (*it == default_file || it->starts_with(default_file)) {
29
has_default_config_file = true;
0 commit comments