Skip to content

Commit

Permalink
πŸ› Don't reject project names that are too long
Browse files Browse the repository at this point in the history
This is actually fine once we enable long file paths support, and even when its not enabled it works better if we just ignore that and let the system report errors
  • Loading branch information
JulesFouchy committed Feb 23, 2025
1 parent e38e375 commit e1bbea5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ProjectManager/ProjectManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,6 @@ auto ProjectManager::project_name_error_message(std::string const& name, NameVal
if (name.empty())
return "Name cannot be empty";

if (Cool::File::weakly_canonical(_impl.project_path(name)).string().size() > 255)
return "Name is too long";

for (char const invalid_char : {'.', '<', '>', ':', '\"', '/', '\\', '|', '?', '*', '\0'})
{
if (name.find(invalid_char) != std::string::npos)
Expand Down

0 comments on commit e1bbea5

Please sign in to comment.