fix: preserve case for stream descriptors (#1321)

The accidental tolower in `SplitAndTrimSkipEmpty` was causing stream
descriptors to not preserve case for certain things like
accessibilities.
This commit is contained in:
Cosmin Stejerean 2024-02-08 18:48:46 +01:00 committed by GitHub
parent 56bd823339
commit 5d44368478
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -11,8 +11,7 @@
namespace shaka { namespace shaka {
std::vector<std::string> SplitAndTrimSkipEmpty(const std::string& str, std::vector<std::string> SplitAndTrimSkipEmpty(const std::string& str,
char delimiter) { char delimiter) {
auto tokens = auto tokens = absl::StrSplit(str, delimiter, absl::SkipEmpty());
absl::StrSplit(absl::AsciiStrToLower(str), delimiter, absl::SkipEmpty());
std::vector<std::string> results; std::vector<std::string> results;
for (const absl::string_view& token : tokens) { for (const absl::string_view& token : tokens) {
std::string trimmed = std::string(token); std::string trimmed = std::string(token);