Skip to content

Commit

Permalink
fix: preserve case for stream descriptors (shaka-project#1321)
Browse files Browse the repository at this point in the history
The accidental tolower in `SplitAndTrimSkipEmpty` was causing stream
descriptors to not preserve case for certain things like
accessibilities.
  • Loading branch information
cosmin authored Feb 8, 2024
1 parent 56bd823 commit 5d44368
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packager/utils/string_trim_split.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
namespace shaka {
std::vector<std::string> 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<std::string> results;
for (const absl::string_view& token : tokens) {
std::string trimmed = std::string(token);
Expand Down

0 comments on commit 5d44368

Please sign in to comment.