You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent removal of last character on no filename extension (#120)
* fix: prevent removal of last character on no filename extension
Fixessanity-io/client#98
If a file is uploaded with an original filename that does not include an extension (`.png` or similar), the `getFilenameWithoutExtension` method will remove the last character of the filename, because it uses the last index of `.`, which is not found, resulting in `-1`.
* fix: simplify filename inputs, trim before validation
---------
Co-authored-by: Robin Pyon <robin.pyon@gmail.com>
0 commit comments