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:
parent
56bd823339
commit
5d44368478
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue