From 5d44368478bbd0cd8bd06f0dfa739f8cfa032ddc Mon Sep 17 00:00:00 2001 From: Cosmin Stejerean Date: Thu, 8 Feb 2024 18:48:46 +0100 Subject: [PATCH] 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. --- packager/utils/string_trim_split.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packager/utils/string_trim_split.cc b/packager/utils/string_trim_split.cc index 6ef1a0e5ef..afe03427cb 100644 --- a/packager/utils/string_trim_split.cc +++ b/packager/utils/string_trim_split.cc @@ -11,8 +11,7 @@ namespace shaka { std::vector SplitAndTrimSkipEmpty(const std::string& str, char delimiter) { - auto tokens = - absl::StrSplit(absl::AsciiStrToLower(str), delimiter, absl::SkipEmpty()); + auto tokens = absl::StrSplit(str, delimiter, absl::SkipEmpty()); std::vector results; for (const absl::string_view& token : tokens) { std::string trimmed = std::string(token);