Adding Files with spaces at the end is possible

Summary

It is possible to add files with spaces at the end

Steps to reproduce

  1. click on create file somewhere in a repository
  2. name the file 'test.txt '
  3. add content if wanted

Example Project

None. Sry.

What is the current bug behavior?

File is created without warning or error

What is the expected correct behavior?

In my mind I expect at least a warning.