Skip to content

Commit

Permalink
Linux Fixed FilenameValid() returning false on valid filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
GamesTrap committed Aug 21, 2022
1 parent 14678cd commit ec395fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModernDialogs/ModernDialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ bool FilenameValid(const std::string_view filenameWithoutPath)

return std::all_of(filenameWithoutPath.cbegin(), filenameWithoutPath.cend(), [](const char c)
{
return c != '\\' && c != '/' && c == ':' && c == '*' && c == '?' &&
return c != '\\' && c != '/' && c != ':' && c != '*' && c != '?' &&
c != '\"' && c != '<' && c != '>' && c != '|';
});
}
Expand Down

0 comments on commit ec395fb

Please sign in to comment.