diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-08-25 20:36:36 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-08-25 20:36:36 -0400 |
commit | ccabaa44d6954812e7a8582246d3aa14a749ccc9 (patch) | |
tree | 3ecc78516971b709419e93bc75f2709a544c3f40 /src/util.cpp | |
parent | 2bc709bf3ff54b0104fb0bd8e8d80ffd1ba84586 (diff) | |
parent | eea5987f379cd76786ace382da09dd687ecca28a (diff) | |
download | abaddon-portaudio-ccabaa44d6954812e7a8582246d3aa14a749ccc9.tar.gz abaddon-portaudio-ccabaa44d6954812e7a8582246d3aa14a749ccc9.zip |
Merge branch 'master' into rnnoise
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 8d21ff4..ae948ea 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -160,7 +160,10 @@ std::string GetExtension(std::string url) { } bool IsURLViewableImage(const std::string &url) { - const auto ext = GetExtension(url); + std::string lw_url = url; + std::transform(lw_url.begin(), lw_url.end(), lw_url.begin(), ::tolower); + + const auto ext = GetExtension(lw_url); static const char *exts[] = { ".jpeg", ".jpg", ".png", nullptr }; |