[go: up one dir, main page]

Skip to content

Strip surrounding whitespace on snippet filename

Proposal

We should consider stripping surrounding whitespace from filenames when submitting snippets via web form. This prevents a couple subtle bugs like preventing syntax highlighting due to file extension mismatch and (AFAIK) there are no useful reasons for retaining either trailing or leading whitespace.

Example snippet where syntax highlighting fails due to trailing whitespace: https://gitlab.com/-/snippets/2153967

Edited by Lucas Charles