spckio / spck-issues

Spck Editor Issues
https://spck.io
74 stars 15 forks source link

The editor does not recognize the file type if I enter the file format and then a blank space #692

Open otoniel19 opened 7 months ago

otoniel19 commented 7 months ago

If I create a file with the name: index.js , and leave a blank space after the file extension, the editor does not show the file icon as JavaScript, etc, it classifies it as a file normal text Here are some images to see what this looks like: Screenshot_20240220-192349-438.png Screenshot_20240220-192414-656.png

@spck-io

victoryosiobe commented 5 months ago

Stick to the way it works. I too have experienced this. It's not appropriate to trim a file name, because that may be the way the writer of the file wants it. Other editors like, nvim still does the same thing. Best thing is, the editor to warn you, when you enter an empty space at end, so you don't cause discrepancies, still letting you do so if you want.