Web IDE allows filenames ending with space
Files and folders ending with space are problematic (e.g. example
) particularly for Windows and cannot easily be deleted. It would be highly unusual to want to create a filename with a leading or trailing space.
GitLab should prevent this in the Web IDE.
Steps to reproduce
- Create a file with
example.md
(trailing space) - Note that the space isn't visible anywhere
- Commit the change
- Open the rename file interface in the Web IDE and notice there is no trailing space.
Proposal
Trim trailing and leading spaces when creating or renaming files and folders.
Links / references
Edited by James Ramsay (ex-GitLab)