Skip to content

Commit

Permalink
Char, not string.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff committed Sep 14, 2023
1 parent df88178 commit 70f8524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/metrics/instrument_metadata_validator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool InstrumentMetaDataValidator::ValidateName(nostd::string_view name) const
// subsequent chars should be either of alphabets, digits, underscore,
// minus, dot, slash
return !std::any_of(std::next(name.begin()), name.end(), [](char c) {
return !isalnum(c) && (c != '-') && (c != '_') && (c != '.') && (c != "/");
return !isalnum(c) && (c != '-') && (c != '_') && (c != '.') && (c != '/');
});
#endif
}
Expand Down

0 comments on commit 70f8524

Please sign in to comment.