fix: all files selection logic on linux (#34496)
This commit is contained in:
parent
bd81ae08ac
commit
e5543a2dd2
1 changed files with 4 additions and 1 deletions
|
@ -32,8 +32,11 @@ static const int kPreviewWidth = 256;
|
||||||
static const int kPreviewHeight = 512;
|
static const int kPreviewHeight = 512;
|
||||||
|
|
||||||
std::string MakeCaseInsensitivePattern(const std::string& extension) {
|
std::string MakeCaseInsensitivePattern(const std::string& extension) {
|
||||||
std::string pattern("*.");
|
// If the extension is the "all files" extension, no change needed.
|
||||||
|
if (extension == "*")
|
||||||
|
return extension;
|
||||||
|
|
||||||
|
std::string pattern("*.");
|
||||||
for (std::size_t i = 0, n = extension.size(); i < n; i++) {
|
for (std::size_t i = 0, n = extension.size(); i < n; i++) {
|
||||||
char ch = extension[i];
|
char ch = extension[i];
|
||||||
if (!base::IsAsciiAlpha(ch)) {
|
if (!base::IsAsciiAlpha(ch)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue